
:root {
    --brand: #1a3c6e;
    --brand-light: #e8eef7;
    --accent: #e84040;
    --surface: #f5f6f8;
    --border: #e2e4e9;
    --text: #1a1d23;
    --muted: #6b7280;
    --white: #ffffff;
    --gold: #f8c842;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --facebook: #1877F2;
    --facebook-light: #e7f1ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text);
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; }

.signup-wrapper { width: 100%; max-width: 440px; }

.logo-section { text-align: center; margin-bottom: 16px; }
.logo-section img { max-width: 80px; height: auto; }

.signup-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════════ */
/* LOADING OVERLAY FOR SOCIAL LOGIN               */
/* ═══════════════════════════════════════════════ */
.signup-card {
    position: relative;
}

.signup-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-xl);
}

.signup-loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.signup-loader-content { text-align: center; }

.signup-loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.signup-loader-text {
    font-size: 13px;
    color: var(--muted);
    font-family: 'Sora', sans-serif;
    font-weight: 500;
}

.signup-loader-text span { color: var(--brand); font-weight: 600; }

/* ═══════════════════════════════════════════════ */
/* SOCIAL PROMPT                                 */
/* ═══════════════════════════════════════════════ */
.social-prompt {
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 12px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.social-prompt--google { background: var(--brand-light); border: 1px solid var(--brand); }
.social-prompt--facebook { background: #e7f1ff; border: 1px solid #1877F2; }

.social-prompt__title { font-size: 13px; margin-bottom: 6px; }
.social-prompt--google .social-prompt__title { color: var(--brand); }
.social-prompt--facebook .social-prompt__title { color: #1877F2; }

.social-prompt__desc { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.social-prompt__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 100px;
    text-decoration: none; font-size: 13px; font-weight: 500; transition: all 0.2s;
}

.social-prompt__btn--google { background: #fff; border: 1px solid var(--border); color: var(--text); }
.social-prompt__btn--google:hover { border-color: var(--brand); background: var(--brand-light); }
.social-prompt__btn--facebook { background: #1877F2; border: 1px solid #1877F2; color: #fff; }
.social-prompt__btn--facebook:hover { background: #166fe5; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.signup-header { padding: 24px 24px 0; text-align: center; }
.signup-header h1 { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.signup-header p { font-size: 13px; color: var(--muted); }
.signup-header p strong { color: var(--brand); }

.signup-content { padding: 20px 24px 24px; }

/* Steps */
.steps {
    display: flex; justify-content: center; gap: 0;
    margin-bottom: 20px; position: relative;
}
.step {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; position: relative; z-index: 1;
}
.step:not(:last-child)::after {
    content: ''; position: absolute; top: 14px; left: 55%;
    width: 90%; height: 2px; background: var(--border); z-index: 0;
}
.step.completed:not(:last-child)::after { background: var(--brand); }
.step-num {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; font-family: 'Sora', sans-serif;
    background: var(--surface); color: var(--muted);
    border: 2px solid var(--border); position: relative; z-index: 1;
    margin-bottom: 4px;
}
.step.active .step-num { background: var(--brand); color: #fff; border-color: var(--brand); }
.step.completed .step-num { background: #166534; color: #fff; border-color: #166534; }
.step-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.step.active .step-label { color: var(--brand); font-weight: 600; }
.step.completed .step-label { color: #166534; }

/* Form */
.form-group { margin-bottom: 12px; position: relative; }
.form-group label {
    display: block; margin-bottom: 4px; font-size: 12px;
    font-weight: 500; color: var(--text);
}
.form-group input {
    width: 100%; padding: 11px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-md); font-family: 'DM Sans', sans-serif;
    font-size: 13px; color: var(--text); transition: border-color 0.15s;
    background: var(--white);
}
.form-group input:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(26,60,110,0.08);
}
.form-group input::placeholder { color: #9ca3af; }

.name-fields { display: flex; gap: 10px; }
.name-fields .form-group { flex: 1; }

.password-toggle {
    position: absolute; right: 10px; top: 34px;
    cursor: pointer; color: var(--muted); font-size: 13px;
    padding: 4px; background: none; border: none;
}
.password-toggle:hover { color: var(--brand); }

/* Verification digits */
.verification-digits {
    display: flex; gap: 8px; justify-content: center;
}
.verification-digits input {
    width: 40px; height: 48px; text-align: center;
    font-size: 20px; font-weight: 700; font-family: 'Sora', sans-serif;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    transition: border-color 0.15s;
}
.verification-digits input:focus { border-color: var(--brand); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 11px; border-radius: 100px;
    font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; border: none;
}
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: #142f58; }
.btn--brand:disabled { opacity: 0.6; cursor: not-allowed; }

.checkbox-row {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 11px; color: var(--muted); margin: 8px 0 12px;
}
.checkbox-row input { margin-top: 2px; accent-color: var(--brand); width: 14px; height: 14px; }
.checkbox-row a { color: var(--brand); text-decoration: none; }
.checkbox-row a:hover { text-decoration: underline; }

.error-msg { color: var(--accent); font-size: 11px; margin-top: 3px; display: none; }
.success-msg { color: #166534; font-size: 11px; margin-top: 3px; display: none; }

.signup-footer {
    text-align: center; padding: 12px 24px;
    color: var(--muted); font-size: 10px;
    border-top: 1px solid var(--border); background: var(--surface);
}
.signup-footer a { color: var(--brand); text-decoration: none; }
.signup-footer a:hover { text-decoration: underline; }

.login-link {
    text-align: center; margin-top: 10px; font-size: 12px; color: var(--muted);
}
.login-link a { color: var(--brand); font-weight: 600; text-decoration: none; }
.login-link a:hover { text-decoration: underline; }

.form-step { display: none; }
.form-step.active { display: block; }

.resend-link { text-align: center; margin: 8px 0; font-size: 12px; }
.resend-link a { color: var(--brand); text-decoration: none; cursor: pointer; }
.resend-link a:hover { text-decoration: underline; }

@keyframes spin { to { transform: rotate(360deg); } }
.fa-spinner { animation: spin 0.8s linear infinite; }

@media (max-width: 480px) {
    .signup-card { border-radius: var(--radius-lg); }
    .signup-content { padding: 16px; }
    .signup-header { padding: 20px 16px 0; }
    .name-fields { flex-direction: column; gap: 0; }
    .verification-digits input { width: 36px; height: 42px; font-size: 18px; }
}
/* Social Buttons */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    color: var(--text);
}

.social-btn:hover {
    border-color: var(--brand);
    background: var(--brand-light);
}

.social-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.social-btn.google i {
    color: #4285F4;
}

.social-btn.facebook {
    background: var(--facebook);
    border-color: var(--facebook);
    color: #fff;
}

.social-btn.facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 14px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text {
    padding: 0 12px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}
.w-5{
    width: 20px;
}
.h-5{
    height: 20px;
    margin-right: 15px;
}
