.auth-page .os-shell {
    display: none;
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(18px, 4vw, 48px);
}

.auth-controls {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    padding: 0;
}

.auth-controls .topbar-language-menu {
    right: auto;
    left: 0;
    min-width: 72px;
    padding: 6px;
}

.auth-controls .topbar-language-trigger,
.auth-controls .theme-toggle {
    min-height: 36px;
}

.auth-controls .theme-toggle {
    min-width: 40px;
}

.auth-controls .topbar-language-trigger {
    min-width: 74px;
    padding: 0 10px;
}

.auth-controls .topbar-language-option {
    display: flex;
    justify-content: center;
    min-height: 36px;
    padding: 6px;
}

.auth-controls .topbar-language-option-code {
    width: 42px;
    height: 30px;
}

.auth-panel {
    display: grid;
    gap: 28px;
    width: min(100%, 480px);
    padding: clamp(22px, 4vw, 34px);
}

.auth-panel-wide {
    width: min(100%, 620px);
}

.auth-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    color: var(--mws-text);
    font-family: var(--mws-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background-image: url('../img/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.auth-kicker,
.page-kicker,
.card-eyebrow {
    margin: 0 0 6px;
    color: var(--mws-accent);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-brand h1 {
    margin: 0;
    font-family: var(--mws-font-heading);
    font-size: clamp(1.8rem, 6vw, 2.7rem);
    font-weight: 800;
}

.auth-copy,
.auth-switch,
.password-hint {
    margin: 0;
    color: var(--mws-text-muted);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -2px;
}

.remember-login {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--mws-text-muted);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.remember-login input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--mws-primary);
}

.forgot-password-link {
    color: var(--mws-accent);
    font-size: 0.86rem;
    font-weight: 800;
}

.forgot-password-link:hover {
    color: var(--mws-text);
}

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

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: var(--mws-text);
    font-size: 0.88rem;
    font-weight: 700;
}

.input-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 12px;
    border: 1px solid rgba(var(--mws-primary-rgb), 0.18);
    border-radius: var(--mws-radius);
    color: var(--mws-text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.input-shell:focus-within {
    border-color: rgba(var(--mws-primary-rgb), 0.44);
    box-shadow: 0 0 0 3px rgba(var(--mws-primary-rgb), 0.10);
}

.input-shell svg {
    width: 18px;
    height: 18px;
}

.input-shell input {
    width: 100%;
    min-width: 0;
    border: 0;
    color: var(--mws-text);
    background: transparent;
    outline: none;
}

.input-shell input::placeholder {
    color: var(--mws-text-muted);
}

.password-toggle {
    min-height: 34px;
    padding: 0 10px;
    border-radius: var(--mws-radius);
    color: var(--mws-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.password-toggle:hover {
    color: var(--mws-text);
    background: rgba(var(--mws-primary-rgb), 0.14);
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    border-radius: var(--mws-radius);
    color: #fff;
    background: linear-gradient(135deg, var(--mws-primary), var(--mws-accent));
    box-shadow: 0 20px 34px rgba(var(--mws-primary-rgb), 0.24);
    font-weight: 800;
    cursor: pointer;
}

.primary-action:hover {
    filter: brightness(1.06);
}

.auth-switch {
    text-align: center;
}

.auth-switch a {
    color: var(--mws-accent);
    font-weight: 800;
}

.password-hint {
    min-height: 1.4em;
    font-size: 0.84rem;
}

.password-hint.is-error {
    color: var(--mws-danger);
}

.password-hint.is-ok {
    color: var(--mws-success);
}

@media (max-width: 640px) {
    .auth-controls {
        justify-content: space-between;
    }

    .auth-panel {
        padding: 20px;
    }

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

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