/* ==========================================================================
   Auth pages — parchment/document aesthetic. Uses the same tokens as
   style.css but never mixes .form-control/.btn app-shell styles.
   ========================================================================== */

.auth-shell {
    min-height: 100vh;
    display: flex;
}

.auth-identity {
    width: 42%;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 20%, #3A3A7A, var(--cu-deep));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-10);
}

.auth-identity img.crest {
    width: 136px;
    height: 136px;
    filter: drop-shadow(0 2px 20px rgba(0,0,0,0.5));
    margin-bottom: var(--space-6);
}

/* Placeholder until assets/img/cairo-university-logo.png is supplied. */
.crest-placeholder {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'EB Garamond', serif;
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: var(--space-6);
}

.auth-identity .university-name {
    font-family: 'EB Garamond', serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.auth-identity .divider {
    width: 40px;
    height: 2px;
    background: var(--cu-sky);
    margin: var(--space-4) auto;
}

.auth-identity .faculty-name {
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
}

.auth-form-panel {
    flex: 1;
    background: var(--cu-parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-10);
    position: relative;
}

.auth-form-inner {
    max-width: 360px;
    width: 100%;
}

.auth-form-inner .lang-toggle {
    position: absolute;
    top: var(--space-6);
    inset-inline-end: var(--space-8);
}

.auth-eyebrow {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.auth-heading {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin: var(--space-2) 0 var(--space-4);
    color: var(--cu-navy);
}

.auth-rule {
    height: 2px;
    background: var(--cu-burgundy);
    width: 48px;
    margin-bottom: var(--space-6);
    border: none;
}

.auth-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: block;
    margin-bottom: var(--space-2);
}

.auth-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(49,49,104,0.28);
    border-radius: 0;
    padding: 7px 0;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
}
.auth-input:focus {
    outline: none;
    border-bottom-color: var(--cu-burgundy);
}

.auth-submit {
    width: 100%;
    background: var(--cu-burgundy);
    color: var(--cu-parchment);
    border: none;
    border-radius: 2px;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: var(--space-4);
}
.auth-submit:hover { background: #740000; }
.auth-submit:focus-visible { outline: 2px solid var(--cu-sky); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: 12px;
    margin: var(--space-6) 0;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(49,49,104,0.2);
}

.auth-form-inner .alert {
    border-radius: 2px;
    border-left-width: 3px;
    background: transparent;
    padding-left: var(--space-3);
}

@media (max-width: 720px) {
    .auth-shell { flex-direction: column; }
    .auth-identity {
        width: 100%;
        flex-direction: row;
        padding: var(--space-4);
        justify-content: flex-start;
        gap: var(--space-3);
    }
    .auth-identity img.crest,
    .auth-identity .crest-placeholder { width: 62px; height: 62px; font-size: 1.1rem; margin: 0; }
    .auth-identity .faculty-name, .auth-identity .divider { display: none; }
    .auth-form-inner .lang-toggle { position: static; display: block; text-align: center; margin-bottom: var(--space-4); }
}
