/* ===========================
   GLOBAL RESET + BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(145deg, #eef2f5 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 40px 20px;
    color: #1f2330;
    z-index: 0;
}

/* Smooth fade-in for the entire wrapper */
.signup-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    padding: 30px 40px;  
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.10);
    animation: fadeIn 0.8s ease;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
          HEADER
   =========================== */
.signup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ===========================
       PROGRESS STEPS
   =========================== */
.steps-progress {
    display: flex;
    gap: 28px;
}

.step {
    text-align: center;
    opacity: 0.45;
    transition: 0.25s ease;
}

.step.active {
    opacity: 1;
    transform: translateY(-2px);
}

.step-number {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0f4c75, #3282b8);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-bottom: 5px;
    box-shadow: 0 4px 10px rgba(26, 101, 255, 0.25);
}

.step-label {
    font-size: 12.5px;
    font-weight: 500;
}

/* ===========================
        INTRO SECTION
   =========================== */
.intro-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 6px;
}

.subtitle {
    color: #6a6f77;
    margin-bottom: 18px;
}

/* Referral banner */
.referral-highlight {
    background: linear-gradient(135deg, #e4f1ff, #d9eaff);
    border-left: 4px solid #3282b8;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
    color: #3282b8;
    box-shadow: 0 4px 12px rgba(26, 101, 255, 0.15);
}

/* ===========================
       ERROR ALERT
   =========================== */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.error-alert {
    background: #ffe3e3;
    color: #d12c2c;
    border-left: 4px solid #d12c2c;
    box-shadow: 0 4px 10px rgba(209, 44, 44, 0.15);
}

/* ===========================
          FORM STYLES
   =========================== */
.form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    width: 100%;
}
@media (max-width: 700px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 10px;
    background: #f9fafc;
    border: 1.8px solid #d8dee7;
    transition: 0.25s ease;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #3282b8;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 101, 255, 0.15);
}

.form-group small {
    margin-top: 5px;
    color: #7a8089;
    font-size: 12px;
}

/* ===========================
          BUTTON
   =========================== */
.btn-primary {
    padding: 15px 22px;
    background: linear-gradient(135deg, #3282b8, #0f4c75);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(26, 101, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 101, 255, 0.35);
}

.arrow {
    font-size: 18px;
}

/* ===========================
        FOOTER LINK
   =========================== */
.login-note {
    text-align: center;
    margin-top: 30px;
    color: #555;
}

.login-note a {
    color: #3282b8;
    text-decoration: none;
    font-weight: 600;
}

.login-note a:hover {
    text-decoration: underline;
}

/* =====================BG ANIMATION=============== */
#bg-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10; /* ensure it's behind everything */
    overflow: hidden;
    pointer-events: none;
    background: #eef2f5; /* visible base background */
}

/* The blobs */
.bg-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 1; 
    animation: float 20s infinite ease-in-out;
    mix-blend-mode: screen;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    50% {
        transform: translateY(-120px) translateX(70px) scale(1.15);
    }
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
}
