.auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 32%),
        linear-gradient(135deg, #050608 0%, #111827 45%, #1c1917 100%);
    color: #f8fafc;
    font-family: "Inter", "Segoe UI", sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(360px, 520px);
}

.auth-panel {
    padding: 3rem clamp(1.5rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.auth-brand {
    padding: clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.24), transparent 28%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-logo {
    width: min(190px, 55vw);
    height: auto;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.14);
    color: #facc15;
}

.auth-copy h1 {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 0.95;
    margin: 0 0 1rem;
    max-width: 12ch;
}

.auth-copy p,
.auth-note {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.7;
}

.auth-card {
    border-radius: 28px;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(3, 7, 18, 0.35);
}

.auth-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.9rem;
}

.auth-card p {
    color: rgba(226, 232, 240, 0.72);
    margin-bottom: 1.5rem;
}

.auth-city-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.auth-city-logo {
    width: 190px;
    height: 190px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-links a,
.auth-note a {
    color: #facc15;
    text-decoration: none;
}

.auth-links a:hover,
.auth-note a:hover {
    color: #fde68a;
}

.auth-submit {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 0.95rem 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #111827;
    background: linear-gradient(135deg, #facc15, #f59e0b);
}

.auth-submit:hover {
    filter: brightness(1.03);
}

.auth-inline-error {
    color: #fda4af;
    font-size: 0.86rem;
    margin-top: 0.45rem;
    display: block;
    width: 100%;
    clear: both;
    line-height: 1.35;
}

.auth-card .js-inline-feedback {
    display: block;
    width: 100%;
    margin-top: 0.45rem;
}

.auth-card .password-field-error,
.auth-card .app-password-toggle-group + .invalid-feedback,
.auth-card .app-password-toggle-group + .js-inline-feedback {
    position: static;
    display: block;
    width: 100%;
    margin-top: 0.45rem;
    clear: both;
}

.auth-card .app-password-toggle-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    margin-bottom: 0;
}

.auth-card .app-password-toggle-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-card .app-password-toggle-group > .form-control.is-invalid,
.auth-card .app-password-toggle-group > .form-control:invalid {
    background-image: none;
    padding-right: 1rem;
}

.auth-card .app-password-toggle-group > .app-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}
