:root {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #25344d;
    background: #edf1f6;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

.login-page {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(440px, 100%);
    border: 1px solid #e0e5ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 48px #24365012;
}

.login-panel { padding: 36px; }
.login-logo { margin-bottom: 30px; }
.login-logo img { display: block; width: 140px; height: auto; }
h1 { margin: 7px 0 28px; font-size: 1.75rem; letter-spacing: -.035em; }
.field { display: block; margin-top: 20px; font-size: .875rem; font-weight: 600; }
.field input {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 10px 13px;
    border: 1px solid #ccd5e2;
    border-radius: 8px;
    background: #fff;
    color: #25344d;
    font-size: 16px;
}
.field input:focus { outline: 0; border-color: #536ed2; box-shadow: 0 0 0 3px #536ed21c; }
.remember { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; font-size: .875rem; cursor: pointer; }
.remember input { width: 18px; height: 18px; margin: 0; accent-color: #c73d2b; }
.submit { width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 8px; background: #c73d2b; color: #fff; font-weight: 700; cursor: pointer; }
.submit:hover { background: #ad3223; }
.submit:focus-visible, .login-language:focus-visible { outline: 3px solid #536ed2; outline-offset: 3px; }
.message { margin-bottom: 20px; padding: 12px; border: 1px solid; border-radius: 8px; font-size: .875rem; line-height: 1.5; }
.message-error { border-color: #efc4ca; background: #fff3f4; color: #9e2639; }
.message-success { border-color: #bce2ca; background: #eff9f3; color: #227145; }
.login-meta { display: flex; justify-content: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid #edf1f6; }
.login-language { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; color: #5e6d82; font-size: .8rem; text-decoration: none; }
.login-language:hover { color: #25344d; }
.login-language svg { border-radius: 2px; box-shadow: 0 0 0 1px #25344d1f; }

@media (max-width: 480px) {
    .login-page { padding: 16px; }
    .login-panel { padding: 28px 24px; }
}

@media (max-height: 640px) {
    .login-page { align-items: start; }
    .login-logo { margin-bottom: 20px; }
}
