/* ============================================================
   REIP — Auth Pages CSS (Centered Layout)
   ============================================================ */

:root {
    --navy: #0a1628;
    --navy-mid: #0f1e35;
    --navy-soft: #1e3050;
    --gold: #c9a84c;
    --gold-dark: #a8862f;
    --emerald: #2ecc71;
}

/* ---- Page Background ---- */
.auth-page-body {
    min-height: 100vh;
    background: linear-gradient(145deg, #f0f3f8 0%, #e8edf5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
    padding: 24px 16px;
}

/* ---- Wrapper ---- */
.auth-centered-wrapper {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ---- Card ---- */
.auth-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(10, 22, 40, 0.10);
    padding: 40px 40px 36px;
    border: 1px solid rgba(10, 22, 40, 0.06);
}

/* ---- Logo ---- */
.auth-card-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.auth-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.auth-logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1px;
}

.auth-logo-text em {
    color: var(--gold);
    font-style: normal;
}

/* ---- Headings ---- */
.auth-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
    text-align: center;
}

.auth-subtext {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.6;
}

/* ---- Input Group Icons ---- */
.auth-input-group .input-group-text {
    background: #f8f9fa;
    border-right: 0;
    color: #6c757d;
    border-color: #dee2e6;
}

.auth-input-group .form-control {
    border-left: 0;
    border-color: #dee2e6;
}

.auth-input-group .form-control:focus {
    box-shadow: none;
    border-color: var(--gold);
}

.auth-input-group:focus-within .input-group-text {
    border-color: var(--gold);
    color: var(--gold);
}

.auth-input-group:focus-within .form-control {
    border-color: var(--gold);
}

/* ---- Password Toggle ---- */
.password-toggle-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 0;
    color: #6c757d;
    cursor: pointer;
    padding: 0 12px;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--navy);
}

/* ---- Buttons ---- */
.btn-auth-gold {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
    padding: 11px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.btn-auth-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--navy);
}

.btn-auth-navy {
    background-color: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 700;
    padding: 11px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.btn-auth-navy:hover {
    background-color: var(--navy-soft);
    border-color: var(--navy-soft);
    color: #fff;
}

/* ---- Divider ---- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #adb5bd;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

/* ---- Role Selection Cards ---- */
.role-card {
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 24px 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
    color: inherit;
    background: #fafbfc;
}

.role-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    text-decoration: none;
    color: inherit;
}

.role-card.investor:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
}

.role-card.developer:hover {
    border-color: var(--navy);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eef8 100%);
}

.role-card .role-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.6rem;
    transition: all 0.25s ease;
}

.role-card.investor .role-icon {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
}

.role-card.investor:hover .role-icon {
    background: var(--gold);
    color: #fff;
}

.role-card.developer .role-icon {
    background: rgba(10, 22, 40, 0.07);
    color: var(--navy);
}

.role-card.developer:hover .role-icon {
    background: var(--navy);
    color: #fff;
}

.role-card h5 {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.role-card p {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* ---- Progress Step Indicator ---- */
.auth-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.auth-step .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.auth-step.active .step-num  { background: var(--gold); color: var(--navy); }
.auth-step.done .step-num    { background: var(--emerald); color: #fff; }
.auth-step.inactive .step-num { background: #e9ecef; color: #6c757d; }

.auth-step .step-label {
    color: var(--navy);
    font-weight: 600;
}

/* ---- Footer Note ---- */
.auth-footer-note {
    font-size: 0.78rem;
    color: #9aa5b4;
    text-align: center;
    margin: 0;
}

.auth-footer-note a {
    color: #9aa5b4;
    text-decoration: none;
}

.auth-footer-note a:hover {
    color: var(--navy);
}

/* ---- Wide card variant (for multi-field forms) ---- */
.auth-card-wide {
    max-width: 600px;
}

/* ---- Responsive ---- */
@media (max-width: 575.98px) {
    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 12px;
    }

    .auth-heading {
        font-size: 1.3rem;
    }

    .auth-logo-text {
        font-size: 1.4rem;
    }

    .auth-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .role-card {
        padding: 18px 12px 16px;
    }

    .role-card .role-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .auth-steps {
        gap: 4px;
        flex-wrap: wrap;
    }

    .auth-step .step-label {
        font-size: 0.72rem;
    }
}
