.login-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.login-layout {
    width: min(100%, 420px);
    display: grid;
    gap: 14px;
}

.login-masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-inline: 2px;
}

.login-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 730;
    letter-spacing: -.025em;
    white-space: nowrap;
}

.login-masthead .language-switch a {
    display: grid;
    min-width: 34px;
    min-height: 34px;
    place-items: center;
}

.login-panel {
    padding: clamp(20px, 5.5vw, 31px);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
}

.login-panel h1 {
    margin-block-end: 22px;
    font-size: clamp(1.65rem, 4vw, 1.95rem);
    font-weight: 730;
    line-height: 1.2;
    letter-spacing: -.04em;
}

.login-form { display: grid; gap: 15px; }
.login-field { display: grid; gap: 6px; }

.login-field label {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 650;
}

.login-field input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--rail);
    font-size: 16px;
}

.login-field input:focus-visible {
    border-color: var(--focus);
    outline-offset: 1px;
    background: var(--white);
}

.login-field input::placeholder { color: var(--muted); opacity: 1; }

.login-password { position: relative; display: grid; }
.login-password input { padding-inline-end: 66px; }

.login-password button {
    position: absolute;
    inset: 4px 4px 4px auto;
    min-width: 52px;
    color: var(--accent-strong);
    font-size: .84rem;
    font-weight: 630;
}

.login-submit { min-height: 44px; margin-block-start: 3px; }

.login-notice {
    padding: 8px 10px;
    border: 1px solid #eccbbd;
    border-radius: 8px;
    background: #fff3ed;
    color: #803826;
    font-size: .88rem;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .login-screen { align-items: start; padding-block: clamp(35px, 12vh, 78px) 30px; }
}
