/* ============================================================
   CABSTATES — ACCA Smart Authentication Pages
   learn/accasmart/assets/css/accasmart-auth.css
   Version: 1.0 | May 2026
   Used by: all files in learn/accasmart/auth/
   Design: CABSTATES dark shell, professional study-tool interior
   ============================================================ */

/* ── Auth Section ───────────────────────────────────────────── */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: var(--space-12) var(--space-10);
    background: var(--black);
    position: relative;
}

.auth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 20% 50%, rgba(0, 71, 171, 0.1) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* ── Auth Container (2-column) ──────────────────────────────── */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1080px;
    margin: 0 auto;
    background: var(--grey-950);
    border: var(--border-subtle);
    border-top: 3px solid var(--yellow);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ── Left: Branding Panel ───────────────────────────────────── */
.auth-branding {
    background: linear-gradient(160deg, #0D1117 0%, #0A0F1A 60%, #060A12 100%);
    padding: var(--space-12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-right: var(--border-subtle);
}

.auth-branding::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 30% 40%, rgba(0, 71, 171, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(0, 184, 169, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.auth-branding::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--yellow) 0%, var(--blue) 50%, var(--teal) 100%);
}

.auth-branding-content {
    position: relative;
    z-index: 2;
}

.auth-branding-lane {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--yellow);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    margin-bottom: var(--space-6);
    opacity: 0.8;
}

.auth-branding-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-5);
    letter-spacing: -0.02em;
}

.auth-branding-title span {
    color: var(--yellow);
}

.auth-branding-subtitle {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: var(--leading-relaxed);
    color: rgba(245, 245, 245, 0.6);
    margin-bottom: var(--space-8);
}

/* ── Auth Benefits ──────────────────────────────────────────── */
.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(245, 245, 245, 0.75);
}

.auth-benefit-icon {
    flex-shrink: 0;
    color: var(--teal);
    width: 18px;
    height: 18px;
}

/* ── Auth Stats ─────────────────────────────────────────────── */
.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.auth-stat {
    text-align: center;
    padding: var(--space-4) var(--space-2);
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-subtle);
    border-radius: var(--radius-sm);
}

.auth-stat-number {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--yellow);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.auth-stat-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: rgba(245, 245, 245, 0.45);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* ── Auth Quote ─────────────────────────────────────────────── */
.auth-quote {
    background: rgba(0, 71, 171, 0.1);
    border: 1px solid rgba(0, 71, 171, 0.2);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius-sm);
    padding: var(--space-6);
}

.auth-quote-icon {
    color: var(--blue-light);
    margin-bottom: var(--space-4);
    display: block;
}

.auth-quote-text {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    line-height: var(--leading-relaxed);
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: var(--space-3);
}

.auth-quote-author {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(245, 245, 245, 0.4);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
}

/* ── Right: Form Panel ──────────────────────────────────────── */
.auth-form-container {
    padding: var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--grey-950);
}

.auth-form-header {
    margin-bottom: var(--space-8);
}

.auth-form-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-2);
    line-height: var(--leading-snug);
}

.auth-form-subtitle {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(245, 245, 245, 0.45);
}

/* ── Form Elements ──────────────────────────────────────────── */
.auth-form {
    margin-bottom: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(245, 245, 245, 0.5);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.form-label-required::after {
    content: ' *';
    color: var(--yellow);
}

.form-input,
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 11px var(--space-4);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--white);
    transition: border-color var(--transition-base), background var(--transition-base);
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: rgba(245, 245, 245, 0.25);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--yellow);
    background: rgba(255, 215, 0, 0.04);
}

.form-input.input-error {
    border-color: var(--red);
    background: rgba(220, 20, 60, 0.05);
}

.form-help-text {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(245, 245, 245, 0.35);
    margin-top: var(--space-2);
    line-height: 1.4;
}

.form-select option {
    background: #1a1d24;
    color: var(--white);
}

/* ── Form Row (remember me / forgot) ───────────────────────── */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
    gap: var(--space-4);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--yellow);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.6);
    cursor: pointer;
}

.form-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.form-link:hover {
    color: var(--yellow-light);
    text-decoration: underline;
}

/* ── Password Strength ──────────────────────────────────────── */
.password-strength {
    margin-top: var(--space-2);
}

.password-strength-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--space-1);
}

.password-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0;
}

.strength-weak   { background: var(--red); width: 25%; }
.strength-fair   { background: var(--orange, #FF8C00); width: 50%; }
.strength-good   { background: var(--yellow); width: 75%; }
.strength-strong { background: var(--teal); width: 100%; }

.password-strength-text {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(245, 245, 245, 0.4);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
    letter-spacing: 0.01em;
    line-height: 1;
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
    padding: 13px var(--space-6);
    font-size: 0.92rem;
}

.btn-primary:hover {
    background: var(--yellow-light);
    box-shadow: var(--shadow-yellow);
    transform: translateY(-1px);
    color: var(--black);
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px var(--space-8);
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(245, 245, 245, 0.7);
    padding: 10px var(--space-5);
    font-size: 0.85rem;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

/* ── Alert Messages ─────────────────────────────────────────── */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-5);
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.55;
}

.alert-error {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.25);
    color: rgba(220, 20, 60, 0.7);
}

.alert-success {
    background: rgba(0, 184, 169, 0.1);
    border: 1px solid rgba(0, 184, 169, 0.25);
    color: var(--teal);
}

.alert-info {
    background: rgba(0, 71, 171, 0.1);
    border: 1px solid rgba(0, 71, 171, 0.25);
    color: var(--blue-light);
}

.alert p { margin: 0; }
.alert strong { color: var(--white); }

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list li {
    margin-bottom: var(--space-1);
}

.error-list li:last-child {
    margin-bottom: 0;
}

/* ── Social Login ───────────────────────────────────────────── */
.auth-divider {
    position: relative;
    text-align: center;
    margin: var(--space-6) 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.auth-divider-text {
    position: relative;
    display: inline-block;
    padding: 0 var(--space-4);
    background: var(--grey-950);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(245, 245, 245, 0.3);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
}

.auth-social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(245, 245, 245, 0.5);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-social-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Auth Footer ────────────────────────────────────────────── */
.auth-footer {
    text-align: center;
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-footer-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.45);
    margin-bottom: var(--space-2);
}

.auth-footer-text:last-child {
    margin-bottom: 0;
}

.auth-footer-link {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.auth-footer-link:hover {
    color: var(--yellow-light);
    text-decoration: underline;
}

/* ── Verification Page ──────────────────────────────────────── */
.verification-container {
    max-width: 580px;
    margin: var(--space-20) auto;
    background: var(--grey-950);
    border: var(--border-subtle);
    border-top: 3px solid var(--yellow);
    border-radius: var(--radius-sm);
    padding: var(--space-12);
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.verification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.verification-icon-success {
    background: rgba(0, 184, 169, 0.1);
    border: 2px solid rgba(0, 184, 169, 0.3);
    color: var(--teal);
}

.verification-icon-error {
    background: rgba(220, 20, 60, 0.1);
    border: 2px solid rgba(220, 20, 60, 0.25);
    color: rgba(220, 20, 60, 0.6);
}

.verification-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-4);
    line-height: var(--leading-snug);
}

.verification-message {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(245, 245, 245, 0.6);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
}

.verification-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.verification-next-steps {
    text-align: left;
    background: rgba(0, 71, 171, 0.08);
    border: 1px solid rgba(0, 71, 171, 0.2);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius-sm);
    padding: var(--space-6);
}

.verification-next-steps h3 {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(245, 245, 245, 0.5);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-4);
}

.verification-next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.verification-next-steps li {
    padding: var(--space-2) 0;
    padding-left: var(--space-5);
    position: relative;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(245, 245, 245, 0.6);
    line-height: 1.5;
}

.verification-next-steps li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: 700;
}

/* ── Terms checkbox group ───────────────────────────────────── */
.form-terms {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.form-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--yellow);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-terms label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(245, 245, 245, 0.55);
    line-height: 1.5;
    cursor: pointer;
}

.form-terms a {
    color: var(--yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-branding {
        display: none;
    }

    .auth-form-container {
        padding: var(--space-10) var(--space-8);
    }
}

@media (max-width: 640px) {
    .auth-section {
        padding: var(--space-10) var(--space-5);
        align-items: flex-start;
    }

    .auth-container {
        max-width: 100%;
    }

    .auth-form-container {
        padding: var(--space-8) var(--space-5);
    }

    .auth-social-buttons {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .verification-container {
        margin: var(--space-12) var(--space-5);
        padding: var(--space-8) var(--space-5);
    }

    .verification-actions {
        flex-direction: column;
    }

    .verification-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
