/* ExoticExpansion sign in and register: a centred card on the navy ground.
 * Loaded after ee2-brand.css by login/ and register/. Tokens only; rules in design.md.
 */
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: var(--bg);
    overflow: visible;
}
.auth-page::before,
.auth-page::after { content: none; display: none; }

.auth-card {
    width: 100%;
    max-width: 440px;
    min-width: 0;
    padding: 36px 32px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card, 16px);
    box-shadow: none;
    animation: ee2AuthIn .45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.auth-card--wide { max-width: 520px; }

@keyframes ee2AuthIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* Logo block: the play mark shown whole, never cropped or filtered. */
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.auth-brand__mark { display: block; width: 72px; height: 72px; object-fit: contain; }
.auth-brand__name, .auth-brand__tag { display: block; text-align: center; }
.auth-brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.1; color: var(--text-primary); }
.auth-brand__tag { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
.auth-brand:hover .auth-brand__mark { transform: translateY(-1px); }
.auth-brand__mark { transition: transform var(--transition); }

.auth-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.025em;
    text-align: center;
    margin: 0 0 6px;
    color: var(--text-primary);
}
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: .92rem; margin: 0 0 24px; }

.auth-card .form-group { margin-bottom: 14px; min-width: 0; }
.auth-card .form-label { display: block; font-size: .84rem; margin-bottom: 6px; }
.auth-card .form-label span { color: var(--accent); }
.auth-card .form-label .auth-optional { color: var(--text-muted); font-weight: 400; }
.auth-card .form-control { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; box-sizing: border-box; }
.auth-hint { display: block; margin-top: 5px; font-size: .78rem; color: var(--text-muted); }

.auth-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.auth-forgot { display: flex; justify-content: flex-end; margin: -2px 0 14px; }
.auth-forgot a { font-size: .82rem; color: var(--accent); }
.auth-forgot a:hover { text-decoration: underline; }

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: .84rem;
    line-height: 1.45;
    color: var(--text-secondary);
    cursor: pointer;
}
.auth-check input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--logo-teal); }
.auth-check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.auth-card .form-submit {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: .95rem;
    white-space: nowrap;
    text-decoration: none;
}

/* Google button: neutral white per Google's sign-in guidance. */
.auth-card a.auth-google {
    background: #fff;
    color: #1F1F1F;
    -webkit-text-fill-color: #1F1F1F;
    border: 1px solid #DADCE0;
}
.auth-card a.auth-google i { color: #1F1F1F; -webkit-text-fill-color: #1F1F1F; }
.auth-card a.auth-google:hover { background: #F7F8FA; color: #1F1F1F; filter: none; }
.auth-google--top { margin-bottom: 4px; }

.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }

.auth-section {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 4px;
}
.auth-section__label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .84rem; font-weight: 600; color: var(--text-secondary); }
.auth-section__label i { color: var(--accent); }

.auth-prefix {
    display: flex;
    align-items: center;
    min-width: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.auth-prefix:focus-within { border-color: var(--logo-teal); box-shadow: 0 0 0 3px rgba(var(--accent-teal-rgb), .18); }
.auth-prefix span { padding: 0 4px 0 10px; font-family: var(--mono); font-size: .78rem; color: var(--text-muted); white-space: nowrap; }
.auth-card .auth-prefix .form-control { border: 0; background: transparent; padding-left: 2px; box-shadow: none; min-width: 0; }

.auth-legal { margin-top: 16px; font-size: .78rem; line-height: 1.5; color: var(--text-muted); }
.auth-legal a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }

.auth-link { text-align: center; font-size: .9rem; color: var(--text-secondary); margin-top: 20px; }
.auth-link a { color: var(--accent); font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }

.auth-card .alert { border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 16px; }

@media (max-width: 480px) {
    .auth-page { align-items: flex-start; padding: 20px 16px 32px; }
    .auth-card { padding: 28px 18px 24px; }
    .auth-title { font-size: 1.4rem; }
    .auth-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .auth-brand__mark { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card { animation: none; }
}
