:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;--ink:#182230;--muted:#667085;--line:#e4e7ec;--brand:#087a73;--brand-dark:#065f59;--soft:#f5f7f9;--danger:#b42318}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--soft)}a{color:var(--brand);font-weight:650;text-decoration:none}a:hover{text-decoration:underline}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(300px, .85fr) minmax(460px,1.15fr)}.welcome{display:flex;flex-direction:column;justify-content:space-between;padding:clamp(32px,6vw,72px);color:#fff;background:linear-gradient(145deg,#064e49,#087a73)}.brand{color:#fff;font-size:21px;font-weight:800}.welcome-copy{max-width:480px}.welcome h2{margin:0;font-size:clamp(32px,5vw,54px);line-height:1.08;letter-spacing:-.04em}.welcome p{color:#ccfbf1;font-size:17px;line-height:1.6}.welcome small{color:#99f6e4}.form-side{display:grid;place-items:center;padding:clamp(24px,5vw,64px)}.register-card{width:min(100%,560px)}.eyebrow{margin:0 0 8px;color:var(--brand);font-size:12px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}h1{margin:0;font-size:clamp(30px,4vw,42px);letter-spacing:-.035em}.intro{margin:10px 0 28px;color:var(--muted);line-height:1.55}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:grid;align-content:start;gap:7px}.field-wide{grid-column:1/-1}.mode-grid{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode-option{position:relative;display:grid;gap:5px;border:1px solid #b8c3cc;border-radius:10px;padding:14px;background:#fff;cursor:pointer}.mode-option:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 2px rgba(8,122,115,.12);background:#f0fdfa}.mode-option input{position:absolute;opacity:0;pointer-events:none}.mode-option strong{font-size:15px}.mode-option span{color:var(--muted);font-size:12px;line-height:1.45}label{font-size:14px;font-weight:650}input{width:100%;border:1px solid #b8c3cc;border-radius:8px;padding:11px 12px;background:#fff;color:var(--ink);font:inherit}input:focus{border-color:var(--brand);outline:3px solid rgba(8,122,115,.14)}input[aria-invalid=true]{border-color:var(--danger)}.help{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.field-error{margin:0;color:var(--danger);font-size:13px;line-height:1.4}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.form-error{grid-column:1/-1;margin:0;border:1px solid #fda29b;border-radius:8px;padding:11px 13px;background:#fffbfa;color:var(--danger);font-size:14px}.submit{grid-column:1/-1;width:100%;border:0;border-radius:8px;padding:12px 16px;background:var(--brand);color:#fff;font:inherit;font-weight:700;cursor:pointer}.submit:hover{background:var(--brand-dark)}.login-link{margin:24px 0 0;text-align:center;color:var(--muted);font-size:14px}.register-social{display:grid;gap:8px;margin-bottom:14px}.register-provider{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:10px 44px;border:1px solid #cbd5db;border-radius:8px;background:#fff;color:var(--ink);font-size:14px;font-weight:650}.register-provider:hover{border-color:#8aa4ad;background:#f8fafb;text-decoration:none}.register-provider-mark{position:absolute;left:14px;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:10px;font-weight:900;line-height:1}.register-provider-vk .register-provider-mark{background:#2787f5;color:#fff}.register-provider-yandex .register-provider-mark{border:1px solid #e4e7ec;background:#fff;color:#fc3f1d;font-size:15px}.register-provider-google .register-provider-mark{border:1px solid #d0d5dd;background:#fff;color:#4285f4;font-size:13px}.public-locale{position:fixed;right:20px;top:16px;z-index:20}.locale-switcher{display:inline-flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#fff}.locale-switcher button{width:auto;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:6px;padding:8px 10px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:750;cursor:pointer}.locale-switcher button[aria-current=true]{background:#ecfdf9;color:var(--brand-dark)}@media(max-width:840px){.auth-shell{display:block;min-height:100dvh}.welcome{min-height:0;padding:16px 24px}.welcome-copy,.welcome small{display:none}.form-side{place-items:start center;padding-top:18px}}@media(max-width:520px){body{padding-top:0;position:relative}.sandbox-marker{height:36px;padding:0 96px 0 12px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.public-locale{position:absolute;top:8px;right:10px}.welcome{min-height:60px;padding:10px 118px 10px 20px;justify-content:center}.welcome .brand{font-size:18px}.form-side{padding:18px 20px 28px}.form-grid,.mode-grid{grid-template-columns:1fr}.field-wide,.form-error,.submit,.mode-grid{grid-column:auto}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

.sandbox-marker{display:block;padding:9px 12px;background:#b42318;color:#fff;text-align:center;font-weight:800}
.verified-identity{border-color:#a6f4c5;background:#ecfdf3;color:#067647;margin-bottom:18px}
.register-code-form{display:grid;gap:10px;margin-bottom:14px}
.register-consent{display:flex;gap:8px;align-items:flex-start;text-align:left}
.register-consent-checkbox{width:auto!important;margin-top:3px}
.password-registration-note{margin:0 0 12px;text-align:center}
.auth-password-registration{margin-bottom:18px}
.auth-password-registration>summary{cursor:pointer;font-weight:650;min-height:44px;display:flex;align-items:center}
.auth-password-registration,.auth-password-login{margin:10px 0}
.auth-password-registration>summary,.auth-password-login>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:var(--brand);font-size:14px;font-weight:650}
.auth-password-registration[open],.auth-password-login[open]{padding-bottom:12px}
.auth-password-registration .form-grid,.auth-password-login .form-grid{padding:14px 0}
.register-consent[hidden]{display:none!important}
.register-legal{margin:22px 0 0;color:var(--muted);font-size:12px;line-height:1.55;text-align:center}
.register-code-form .submit{margin-top:4px}
.auth-code-form{display:grid;gap:14px}
.auth-code-form .submit{grid-column:1}
.code-messenger-delivery{border:1px solid #99e8d6;background:#ecfdf5;padding:12px;border-radius:9px;font-weight:600;margin-bottom:14px}
.auth-code-actions{display:grid;gap:10px;margin-top:18px}

/* Compact public entry card: one primary contact action, secondary social options. */
.auth-page-compact {
    background: #f4f6f8;
}

.auth-page-compact .auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
    align-items: stretch;
    min-height: 100dvh;
    padding: 0;
}

/* Retain the original Chronomika brand panel alongside the compact form. */
.auth-page-compact .welcome {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100dvh;
    padding: clamp(32px, 5vw, 72px);
    background: linear-gradient(145deg, #064e49, #087a73);
    color: #fff;
}

.auth-page-compact .welcome .brand {
    width: fit-content;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.auth-page-compact .welcome-copy {
    max-width: 480px;
}

.auth-page-compact .welcome-copy h2 {
    color: #fff;
    font-size: clamp(32px, 3.8vw, 54px);
    line-height: 1.1;
}

.auth-page-compact .welcome-copy p {
    color: #d4fbf3;
    font-size: 17px;
    line-height: 1.6;
}

.auth-page-compact .welcome small {
    color: #a6f3dd;
}

.auth-page-compact .form-side {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: clamp(24px, 4vw, 64px);
    margin: 0;
}

.auth-page-compact .register-card {
    width: 100%;
    max-width: 520px;
    padding: 25px 28px 23px;
    border: 1px solid #dfe3e7;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .025);
}

.auth-page-compact .register-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    min-height: 30px;
}

.auth-page-compact .register-card-brand {
    color: #66748a;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .015em;
}

.auth-page-compact .public-locale {
    position: static;
    z-index: auto;
    flex: none;
}

.auth-page-compact .locale-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.auth-page-compact .locale-switcher button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 5px 4px;
    color: #8390a1;
    background: transparent;
    font-size: 11px;
    font-weight: 450;
}

.auth-page-compact .locale-switcher button:first-of-type::after {
    content: ' /';
    color: #a3acb9;
    font-weight: 400;
}

.auth-page-compact .locale-switcher button[aria-current=true] {
    color: #43546a;
    background: transparent;
    font-weight: 650;
}

.auth-page-compact h1 {
    color: #1a2638;
    font-size: clamp(20px, 4vw, 22px);
    line-height: 1.28;
    font-weight: 750;
}

.auth-page-compact .intro {
    margin: 12px 0 17px;
    color: #68788c;
    font-size: 14px;
    line-height: 1.55;
}

.auth-page-compact .register-code-form {
    gap: 10px;
    margin: 0;
}

.auth-page-compact .register-code-form > label:not(.register-consent) {
    font-size: 13px;
    color: #526174;
    font-weight: 650;
}

.auth-page-compact .register-code-form input[name=identifier] {
    min-height: 46px;
    background: #f6f7f8;
    border-color: #d8dee5;
    border-radius: 9px;
    font-size: 14px;
}

.auth-page-compact .register-code-form input[name=identifier]:focus {
    background: #fff;
}

.auth-page-compact .submit {
    min-height: 50px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
}

.auth-page-compact .register-code-form .submit {
    margin: 2px 0 0;
}

.auth-page-compact .register-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 27px 0 14px;
    color: #8390a0;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}

.auth-page-compact .register-divider::before,
.auth-page-compact .register-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #e0e5eb;
}

.auth-page-compact .register-divider span {
    flex: none;
}

.auth-page-compact .register-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
}

.auth-page-compact .register-social:has(.register-provider-google) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-page-compact .register-provider {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 50px;
    padding: 8px 11px;
    border: 1px solid #d8dde4;
    border-radius: 9px;
    background: #f6f7f8;
    color: #152033;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}

.auth-page-compact .register-provider:hover {
    background: #edf5f5;
    border-color: #9bbab8;
}

.auth-page-compact .register-provider-mark {
    position: static;
    display: inline-grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
}

.auth-page-compact .auth-password-login {
    margin: 10px 0 0;
}

.auth-page-compact .auth-password-login > summary {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    list-style: none;
    cursor: pointer;
    color: #0b7972;
    font-size: 13px;
}

.auth-page-compact .auth-password-login > summary::-webkit-details-marker,
.auth-page-compact .auth-password-registration > summary::-webkit-details-marker {
    display: none;
}

.auth-page-compact .login-password-question {
    color: #1f2937;
    font-weight: 400;
}

.auth-page-compact .login-password-action {
    font-weight: 700;
}

.auth-page-compact .auth-password-login .form-grid {
    margin-top: 2px;
}

.auth-page-compact .register-legal {
    margin-top: 10px;
    padding: 21px 14px 0;
    border-top: 1px solid #e4e7eb;
    color: #798598;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.auth-page-compact .register-legal a {
    color: #597381;
    font-weight: 650;
}

.auth-page-compact .auth-password-registration {
    margin: 14px 0 0;
    padding-top: 5px;
    border-top: 1px solid #f2f4f7;
}

.auth-page-compact .auth-password-registration > summary {
    display: flex;
    justify-content: center;
    min-height: 40px;
    align-items: center;
    color: #8090a1;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.auth-page-compact .verified-identity {
    padding: 12px;
    border: 1px solid #a6f4c5;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

/* Small screens keep the brand, but not an oversized left-hand panel. */
@media (max-width: 920px) {
    .auth-page-compact .auth-shell {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 100dvh;
        padding: 0;
    }

    .auth-page-compact .welcome {
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        min-height: 78px;
        padding: 16px 26px;
    }

    .auth-page-compact .welcome .brand {
        font-size: 20px;
    }

    .auth-page-compact .welcome-copy,
    .auth-page-compact .welcome small {
        display: none;
    }

    .auth-page-compact .form-side {
        display: grid;
        place-items: start center;
        padding: 22px 14px 38px;
    }
}

@media (max-width: 520px) {
    .auth-page-compact .welcome {
        min-height: 68px;
        padding: 12px 20px;
    }

    .auth-page-compact .welcome .brand {
        font-size: 19px;
    }

    .auth-page-compact .form-side {
        padding: 12px 9px 26px;
    }

    .auth-page-compact .register-card {
        padding: 20px 22px 22px;
    }
}

@media (max-width: 370px) {
    .auth-page-compact .register-card {
        padding: 18px 17px 20px;
    }

    .auth-page-compact .register-provider {
        padding: 8px 7px;
        gap: 5px;
        font-size: 12px;
    }

    .auth-page-compact .register-social:has(.register-provider-google) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-page-compact .register-provider-google {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page-compact .register-provider {
        transition: none;
    }
}

/* Shared email and messenger sign-in flow. */
.auth-entry-page .register-card { overflow-wrap: anywhere; }
.auth-entry-page .register-card input:not([type=checkbox]):not([type=hidden]) { min-height: 48px; font-size: 16px; }
.auth-entry-page .register-card input[type=checkbox] { width: auto; min-height: auto; }
.auth-entry-page .register-card input:disabled { background: #f2f4f7; color: #667085; }
.auth-entry-page .register-card form:not(.locale-switcher):not(.form-grid):not(.register-code-form):not(.auth-code-form) { display: grid; gap: 12px; }
.auth-entry-page .register-card > form { margin-top: 16px; }
.auth-entry-page .register-card > form > label { display: grid; gap: 8px; }
.auth-entry-page .register-card > form > button:not([class]) { min-height: 48px; border: 0; border-radius: 9px; padding: 12px 16px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.auth-entry-page .register-card button { font-family: inherit; }
.auth-entry-page .register-card button:disabled { cursor: default; opacity: .58; }
.auth-entry-page .register-card button:focus-visible,
.auth-entry-page .register-card a:focus-visible,
.auth-entry-page .register-card summary:focus-visible { outline: 3px solid #5ed6c4; outline-offset: 3px; }
.auth-entry-page .register-card .form-error { margin: 12px 0; }
.auth-notice { margin: 14px 0; padding: 12px 14px; border: 1px solid #c8e5dd; border-radius: 9px; background: #f2fbf7; color: #25594e; font-size: 14px; line-height: 1.55; }
.auth-secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 48px; border: 1px solid #cbd5db; border-radius: 9px; padding: 11px 14px; background: #fff; color: #176b60; font: inherit; font-weight: 650; text-align: center; cursor: pointer; }
.auth-secondary-button:hover { background: #f0f8f5; text-decoration: none; }
.auth-provider-icon { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.auth-entry-page .auth-messenger-buttons { grid-template-columns: repeat(2,minmax(0,1fr)); }
.auth-entry-page .register-social:has(> :only-child) { grid-template-columns: 1fr; }
.auth-provider-help { margin-top: 12px; }
.auth-contact-value { overflow-wrap: anywhere; }
.auth-text-center { text-align: center; }
.auth-return { margin: 12px 0 0; text-align: center; font-size: 14px; line-height: 1.5; }
.auth-entry-page .auth-code-form { gap: 10px; margin-top: 18px; }
.auth-entry-page .auth-code-form input[name=code] { font-size: 25px; letter-spacing: .24em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-code-timer { margin-top: 12px; font-variant-numeric: tabular-nums; }
.auth-entry-page .auth-code-actions { gap: 12px; }
.auth-entry-page .auth-password-login { margin-top: 20px; border-top: 1px solid #e4e7eb; padding-top: 8px; }
.auth-entry-page .auth-password-login > summary { min-height: 46px; font-size: 14px; }
.auth-entry-page .register-code-form .cf-turnstile,
.auth-entry-page [data-auth-code-resend-form] .cf-turnstile { max-width: 100%; }
@media (max-width: 370px) {
    .auth-entry-page .register-card { padding-left: 12px; padding-right: 12px; }
    .auth-entry-page .register-divider { gap: 6px; }
    .auth-entry-page .register-divider span { white-space: normal; }
}

@media (max-width: 340px) {
    .auth-entry-page .form-side { padding: 18px 10px 28px; }
    .auth-entry-page .register-card { padding: 12px 0; border: 0; background: transparent; box-shadow: none; }
}
