﻿/* ============================================================
   login.css  –  (login + registration)
   ============================================================ */


/* ── Shell & Brand ────────────────────────────────────────── */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 520px;
    background: var(--rc-bg);
}

.auth-brand {
    background: linear-gradient(135deg, #0b1b3f 0%, #253060 60%, #f47b20 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

    .auth-brand::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("~/images/auth-pattern.png") center / cover;
        opacity: .06;
    }

.auth-brand-logo {
    height: auto;
    width: 100px;
    padding: 5px;
    margin-bottom: 2.5rem;
    position: relative;
    background-color: #fff;
    border-radius: 5px;
}

.auth-brand-title {
    font-family: var(--rc-font-h), 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1rem;
    position: relative;
}

    .auth-brand-title span {
        color: #ffb547;
    }

.auth-brand-sub {
    font-size: .95rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
    max-width: 380px;
    position: relative;
}

/* Login-only: stat counters in brand panel */
.auth-brand-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
}

.auth-stat-num {
    font-family: var(--rc-font-h);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffb547;
}

.auth-stat-lbl {
    font-size: .78rem;
    color: rgba(255, 255, 255, .5);
    text-transform: uppercase;
    letter-spacing: .08em;
}


/* ── Auth Panel ───────────────────────────────────────────── */

.auth-panel {
    background: var(--rc-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    overflow-y: auto;
}

/* Login-only: top bar with logo + link */
.auth-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.auth-logo-sm {
    height: 36px;
}

.auth-panel-title {
    font-family: var(--rc-font-h), 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rc-text);
    margin-bottom: .35rem;
}

.auth-panel-sub {
    font-size: .87rem;
    color: var(--rc-text-muted);
    margin-bottom: 1.85rem;
}


/* ── Shared UI Elements ───────────────────────────────────── */

.auth-divider {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 1.2rem 0;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--rc-border);
    }

    .auth-divider span {
        font-size: .73rem;
        color: var(--rc-text-faint);
        text-transform: uppercase;
        letter-spacing: .06em;
    }

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: 100%;
    padding: .72rem 1.25rem;
    border: 1.5px solid var(--rc-border);
    border-radius: var(--rc-r-sm);
    background: var(--rc-surface);
    color: var(--rc-text);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--rc-ease), box-shadow var(--rc-ease);
}

    .auth-google-btn:hover {
        border-color: var(--rc-primary);
        box-shadow: var(--rc-s-glow);
    }

.auth-google-icon {
    width: 20px;
    height: 20px;
}

/* Login-only: footer link */
.auth-footer {
    margin-top: 2rem;
    font-size: .82rem;
    color: var(--rc-text-muted);
    text-align: center;
}

    .auth-footer a {
        color: var(--rc-primary);
        font-weight: 600;
    }

.pw-wrap {
    position: relative;
}

.pw-eye {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rc-text-muted);
    font-size: .95rem;
}


/* ── Registration-only: Step Indicator ───────────────────── */

.reg-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}

.reg-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
}

.reg-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--rc-border);
    color: var(--rc-text-muted);
    background: var(--rc-surface);
}

.reg-step.active .reg-step-circle {
    background: var(--rc-primary);
    border-color: var(--rc-primary);
    color: #fff;
}

.reg-step.done .reg-step-circle {
    background: var(--rc-ok);
    border-color: var(--rc-ok);
    color: #fff;
}

.reg-step-label {
    font-size: .75rem;
    color: var(--rc-text-muted);
    white-space: nowrap;
}

.reg-step.active .reg-step-label {
    color: var(--rc-text);
    font-weight: 600;
}

.reg-step-line {
    flex: 1;
    height: 2px;
    background: var(--rc-border);
    margin: 0 .5rem;
}

.reg-step.done + .reg-step .reg-step-line {
    background: var(--rc-ok);
}


/* ── Registration-only: Role Cards ───────────────────────── */

.role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    margin-bottom: 1.5rem;
}

.role-card {
    border: 2px solid var(--rc-border);
    border-radius: var(--rc-r-md);
    padding: 1.25rem;
    cursor: pointer;
    text-align: center;
    transition: border-color var(--rc-ease), box-shadow var(--rc-ease);
}

    .role-card:hover {
        border-color: var(--rc-primary);
    }

    .role-card.selected {
        border-color: var(--rc-primary);
        background: rgba(244,123,32, .05);
        box-shadow: var(--rc-s-glow);
    }

    .role-card i {
        font-size: 1.75rem;
        color: var(--rc-primary);
        display: block;
        margin-bottom: .5rem;
    }

.role-card-title {
    font-weight: 700;
    font-size: .9rem;
    color: var(--rc-text);
}

.role-card-sub {
    font-size: .75rem;
    color: var(--rc-text-muted);
    margin-top: .2rem;
}


/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-panel {
        padding: 2rem 1.5rem;
    }
}
