/* Self-contained auth UI: no imports, webfonts or resources outside this folder. */
:root {
    color-scheme: light;
    --auth-bg: #f6f7fb;
    --auth-text: #202b45;
    --auth-muted: #677084;
    --auth-blue: #4263a6;
    --auth-border: #dce0e8;
}
* { box-sizing: border-box; }
body.auth-page {
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    background: var(--auth-bg);
    color: var(--auth-text);
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; }
a { color: var(--auth-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--auth-blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.auth-header { background: #fff; border-bottom: 1px solid #e8eaf0; }
.auth-header-inner {
    max-width: 1248px;
    min-height: 80px;
    padding: 12px 32px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.auth-logo { display: inline-flex; flex-shrink: 0; align-items: center; }
.auth-logo img { display: block; width: 166px; height: auto; }
.auth-header-actions { display: flex; align-items: center; gap: 24px; }
.auth-website-desktop { display: inline-flex; align-items: center; min-height: 44px; color: var(--auth-text); }
.auth-language { position: relative; }
.auth-language summary {
    min-width: 76px;
    min-height: 44px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    border: 1px solid transparent;
    border-radius: 6px;
}
.auth-language summary::-webkit-details-marker { display: none; }
.auth-language summary:hover, .auth-language[open] summary { background: var(--auth-bg); border-color: var(--auth-border); }
.auth-chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.auth-language[open] .auth-chevron { transform: translateY(2px) rotate(225deg); }
.auth-language-list {
    position: absolute;
    z-index: 2;
    right: 0;
    top: calc(100% + 6px);
    width: 172px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    box-shadow: 0 6px 20px #202b4514;
}
.auth-language-list a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 4px; color: var(--auth-text); }
.auth-language-list a:hover, .auth-language-list a[aria-current] { background: var(--auth-bg); color: var(--auth-blue); }
.auth-language-list a[aria-current] { font-weight: 600; }
.auth-main { width: 100%; padding: clamp(48px, 10vh, 120px) 24px 32px; }
.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    box-shadow: 0 2px 5px #202b4508;
}
.auth-intro { margin-bottom: 32px; }
.auth-intro h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.25; letter-spacing: -.6px; font-weight: 650; overflow-wrap: anywhere; }
.auth-intro p { margin: 0; color: var(--auth-muted); }
.auth-field { margin-bottom: 24px; }
.auth-field label { display: block; font-weight: 600; }
.auth-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.auth-recovery { font-size: 14px; min-height: 24px; display: inline-flex; align-items: center; }
.auth-field input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    margin-top: 8px;
    padding: 11px 14px;
    border: 1px solid #cdd2dc;
    border-radius: 5px;
    background: #fff;
    color: var(--auth-text);
}
.auth-field input::placeholder { color: var(--auth-muted); opacity: 1; }
.auth-field input:focus { outline: 2px solid var(--auth-blue); outline-offset: 1px; border-color: var(--auth-blue); }
.auth-password { position: relative; }
.auth-password.has-toggle input { padding-right: 52px; }
.auth-password-toggle {
    position: absolute;
    right: 1px;
    top: 1px;
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--auth-muted);
    background: transparent;
    border: 0;
    border-radius: 4px;
}
.auth-password-toggle:hover { background: var(--auth-bg); color: var(--auth-text); }
.auth-eye { position: relative; width: 19px; height: 13px; border: 1.5px solid currentColor; border-radius: 70% 25%; transform: rotate(45deg); }
.auth-eye::before { content: ""; position: absolute; width: 5px; height: 5px; top: 2.5px; left: 5.5px; border: 1.5px solid currentColor; border-radius: 50%; }
.auth-password-toggle[aria-pressed="true"] .auth-eye::after { content: ""; position: absolute; width: 1.5px; height: 24px; background: currentColor; left: 8px; top: -7px; }
.auth-submit { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--auth-blue); border-radius: 5px; background: var(--auth-blue); color: #fff; font-weight: 600; }
.auth-submit:hover { background: #35528d; border-color: #35528d; }
.auth-submit:active { background: #2b4476; }
.auth-registration { margin: 24px 0 0; border-top: 1px solid var(--auth-border); padding-top: 20px; text-align: center; }
.auth-registration span { display: block; color: var(--auth-muted); }
.auth-registration a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; overflow-wrap: anywhere; }
.auth-footer { margin: 28px auto 0; text-align: center; color: var(--auth-muted); font-size: 13px; }
.auth-error { margin: 0 0 24px; padding: 12px 14px; border: 1px solid #ebc7c7; border-radius: 5px; background: #fff4f4; color: #9e2929; overflow-wrap: anywhere; }
.auth-website-mobile { display: none; }
@media (max-width: 600px) {
    .auth-header-inner { min-height: 72px; padding: 12px 20px; gap: 16px; }
    .auth-logo img { width: 132px; }
    .auth-header-actions { gap: 0; }
    .auth-language summary { border-color: var(--auth-border); min-width: 68px; }
    .auth-website-desktop { display: none; }
    .auth-main { padding: 12px 20px 24px; display: flex; flex-direction: column; min-height: calc(100vh - 73px); min-height: calc(100svh - 73px); }
    .auth-website-mobile { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; gap: 6px; margin-bottom: 24px; }
    .auth-card { max-width: 440px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
    .auth-intro { margin-bottom: 24px; }
    .auth-intro h1 { font-size: 28px; }
    .auth-form-panel { background: #fff; border: 1px solid var(--auth-border); border-radius: 10px; padding: 24px; box-shadow: 0 2px 5px #202b4508; }
    .auth-field-heading { align-items: baseline; }
    .auth-recovery { min-height: 44px; margin-block: -10px; }
    .auth-footer { margin-top: auto; padding-top: 36px; }
}
@media (max-width: 359px) {
    .auth-form-panel { padding: 20px 16px; }
    .auth-field-heading { gap: 4px; }
    .auth-recovery { font-size: 13px; }
}
@media (forced-colors: active) {
    .auth-submit { border: 1px solid ButtonText; }
}
