.sk-auth {
    --auth-canvas: var(--ui-canvas, #f5f0e6);
    --auth-surface: var(--ui-surface, #fffdf8);
    --auth-ink: var(--ui-ink, #0b3440);
    --auth-muted: var(--ui-muted, #52676b);
    --auth-line: var(--ui-line, #d4dcd7);
    --auth-brand: var(--ui-brand, #1f6f5c);
    --auth-on-brand: var(--ui-on-brand, #ffffff);
    --auth-accent: var(--ui-accent, #e07a5f);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(100svh - 80px);
    background: var(--auth-canvas);
    color: var(--auth-ink);

}

.dark .sk-auth {
    --auth-canvas: var(--ui-canvas, #0e2027);
    --auth-surface: var(--ui-surface, #16303a);
    --auth-ink: var(--ui-ink, #eef3ef);
    --auth-muted: var(--ui-muted, #b3c4c7);
    --auth-line: var(--ui-line, #35505a);
    --auth-brand: var(--ui-brand, #99d6bc);
    --auth-on-brand: var(--ui-on-brand, #0b3440);
    --auth-accent: var(--ui-accent, #ee9c85);
    color-scheme: dark;
}

.sk-auth .sk-auth__story {
    padding: clamp(32px, 5vw, 88px);
    border-right: 1px solid var(--auth-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    min-width: 0;
}

.sk-auth .sk-auth__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.sk-auth .sk-auth__brand img { width: 32px; height: 32px; }
.sk-auth .sk-auth__brand span { margin-left: auto; font-size: 12px; letter-spacing: .12em; color: var(--auth-muted); }
.sk-auth .sk-auth__story-copy h1 { font-family: var(--ui-display, 'Fraunces', Georgia, serif); font-size: clamp(40px, 4.2vw, 68px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.sk-auth .sk-auth__story-copy em { color: var(--auth-brand); font-weight: 400; }
.sk-auth .sk-auth__story-copy p { margin-top: 24px; max-width: 40ch; color: var(--auth-muted); font-size: 16px; line-height: 1.8; }
.sk-auth .sk-auth__horizon { height: 94px; position: relative; overflow: hidden; border-bottom: 1px solid var(--auth-line); }
.sk-auth .sk-auth__horizon::before { content: ''; position: absolute; width: 72px; height: 72px; border-radius: 50%; background: var(--auth-accent); left: 18%; top: 12px; }
.sk-auth .sk-auth__horizon::after { content: ''; position: absolute; width: 110%; height: 90px; border: 1px solid var(--auth-brand); border-radius: 50%; left: -5%; top: 64px; background: var(--auth-canvas); }
.sk-auth .sk-auth__horizon span { position: absolute; inset: 20px 14% auto 35%; height: 90px; border-top: 1px dashed var(--auth-muted); border-radius: 50%; transform: rotate(-15deg); }
.sk-auth .sk-auth__horizon i { position: absolute; right: 13%; top: 12px; color: var(--auth-brand); transform: rotate(-20deg); }
.sk-auth .sk-auth__features { display: grid; gap: 20px; }
.sk-auth .sk-auth__features > div { display: flex; gap: 18px; align-items: baseline; }
.sk-auth .sk-auth__number { color: var(--auth-brand); font-size: 12px; font-variant-numeric: tabular-nums; }
.sk-auth .sk-auth__features h3 { font-size: 14px; font-weight: 600; }
.sk-auth .sk-auth__features p { color: var(--auth-muted); font-size: 13px; margin-top: 4px; line-height: 1.65; }
.sk-auth .sk-auth__panel { display: flex; align-items: center; justify-content: center; padding: 64px clamp(24px, 5vw, 80px); min-width: 0; background: var(--auth-surface); }
.sk-auth .sk-auth__form-wrap { width: 100%; max-width: 440px; min-width: 0; }
.sk-auth--register .sk-auth__form-wrap { max-width: 520px; }
.sk-auth--register .sk-auth__story { align-self: start; position: sticky; top: 80px; }
.sk-auth .sk-auth__heading { margin-bottom: 32px; }
.sk-auth .sk-auth__heading--mobile { display: none; }
.sk-auth .sk-auth__eyebrow { display: block; color: var(--auth-brand); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.sk-auth .sk-auth__heading h2 { font-family: var(--ui-display, 'Fraunces', Georgia, serif); font-size: clamp(32px, 3vw, 44px); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.sk-auth .sk-auth__heading p { font-size: 14px; color: var(--auth-muted); margin-top: 12px; line-height: 1.7; }
.sk-auth .sk-auth__form { display: grid; gap: 22px; }
.sk-auth .sk-auth__form > * { min-width: 0; }
.sk-auth .sk-auth__label { display: block; font-size: 13px; font-weight: 600; color: var(--auth-ink); margin-bottom: 8px; }
.sk-auth .sk-auth__field { position: relative; }
.sk-auth .sk-auth__field > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px; color: var(--auth-muted); }
.sk-auth .sk-auth__input { width: 100%; min-width: 0; min-height: 52px; border: 1px solid var(--auth-line); border-radius: 6px; padding: 13px 14px; background: var(--auth-surface); color: var(--auth-ink); font: inherit; font-size: 16px; line-height: 1.5; box-shadow: none; transition: border-color .2s; }
.sk-auth .sk-auth__field > .sk-auth__input { padding-left: 44px; }
.sk-auth .sk-auth__input::placeholder { color: var(--auth-muted); opacity: .8; }
.sk-auth .sk-auth__input:hover { border-color: var(--auth-muted); }
.sk-auth .sk-auth__input:focus { outline: 2px solid var(--auth-brand); outline-offset: 3px; border-color: var(--auth-brand); }
.sk-auth .sk-auth__submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 14px 22px; border-radius: 6px; background: var(--auth-brand); color: var(--auth-on-brand); font-size: 14px; font-weight: 600; line-height: 1.6; border: 1px solid var(--auth-brand); cursor: pointer; transition: transform .2s; text-align: center; }
.sk-auth .sk-auth__submit:hover { transform: translateY(-1px); }
.sk-auth .sk-auth__link { color: var(--auth-brand); font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.sk-auth .sk-auth__link:hover { color: var(--auth-ink); }
.sk-auth :is(a, button, input):focus-visible { outline: 2px solid var(--auth-brand); outline-offset: 4px; }
.sk-auth .sk-auth__remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--auth-ink); user-select: none; }
.sk-auth .sk-auth__remember input { width: 16px; height: 16px; accent-color: var(--auth-brand); cursor: pointer; margin: 0; }
.sk-auth .sk-auth__alternate { margin-top: 28px; color: var(--auth-muted); font-size: 13px; line-height: 1.8; text-align: center; }
.sk-auth .sk-auth__alternate > * + * { margin-top: 16px; }
.sk-auth .sk-auth__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 11px; }
.sk-auth .sk-auth__trust span { display: inline-flex; gap: 6px; align-items: center; }
.sk-auth .sk-auth__trust i { color: var(--auth-brand); }
.sk-auth .sk-auth__notice { display: flex; align-items: flex-start; gap: 14px; padding: 20px; margin-bottom: 24px; border: 1px solid var(--auth-line); border-left: 3px solid var(--auth-brand); background: var(--auth-canvas); color: var(--auth-ink); font-size: 13px; line-height: 1.7; }
.sk-auth .sk-auth__notice > i { color: var(--auth-brand); margin-top: 4px; }
.sk-auth .sk-auth__notice-title { font-weight: 600; }
.sk-auth .sk-auth__mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--auth-line); color: var(--auth-brand); border-radius: 50%; flex-shrink: 0; }
.sk-auth .sk-auth__hint { color: var(--auth-muted); font-size: 12px; line-height: 1.65; margin-top: 8px; }
.sk-auth .sk-auth__email { overflow-wrap: anywhere; color: var(--auth-brand); }
.sk-auth .sk-auth__recipient { color: var(--auth-muted); font-size: 14px; line-height: 1.7; margin: -8px 0 24px; overflow-wrap: anywhere; }
.sk-auth .sk-auth__input--code { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .3em; min-height: 64px; }

.dark .sk-auth input.sk-auth__input { background: var(--auth-surface); color: var(--auth-ink); border-color: var(--auth-line); }
.dark .sk-auth input.sk-auth__input:focus { border-color: var(--auth-brand); }
.sk-auth .sk-auth__phone { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; }
.sk-auth .sk-auth__country { position: relative; min-width: 0; }
.sk-auth .sk-auth__country-menu { position: absolute; top: calc(100% + 8px); left: 0; width: min(300px, calc(100vw - 48px)); max-height: 320px; display: flex; flex-direction: column; z-index: 50; background: var(--auth-surface); color: var(--auth-ink); border: 1px solid var(--auth-line); border-radius: 8px; box-shadow: 0 12px 30px #0002; }
.sk-auth .sk-auth__country-menu button:hover { background: var(--auth-canvas); }
.sk-auth .sk-auth__country span { color: inherit; }
.sk-auth .sk-auth__consent { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--auth-line); padding-top: 18px; }
.sk-auth .sk-auth__consent label { color: var(--auth-muted); font-size: 13px; line-height: 1.8; }
.sk-auth .sk-auth__consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; accent-color: var(--auth-brand); }
.sk-auth .sk-auth__modal { position: fixed; inset: 0; z-index: 100; padding: 20px; align-items: center; justify-content: center; }
.sk-auth .sk-auth__modal:not(.hidden) { display: flex; }
.sk-auth .sk-auth__modal-backdrop { position: absolute; inset: 0; background: #071b23b3; }
.sk-auth .sk-auth__dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 680px; max-height: 85svh; border: 1px solid var(--auth-line); border-radius: 10px; background: var(--auth-surface); color: var(--auth-ink); }
.sk-auth .sk-auth__dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--auth-line); }
.sk-auth .sk-auth__dialog-header h3 { font-family: var(--ui-display, 'Fraunces', Georgia, serif); font-size: 24px; }
.sk-auth .sk-auth__icon-button { flex: 0 0 44px; width: 44px; height: 44px; color: var(--auth-muted); }
.sk-auth .sk-auth__dialog-body { padding: 24px; overflow-y: auto; min-height: 0; font-size: 14px; line-height: 1.8; color: var(--auth-muted); }
.sk-auth .sk-auth__dialog-body > * + * { margin-top: 16px; }
.sk-auth .sk-auth__dialog-body strong { color: var(--auth-ink); }
.sk-auth .sk-auth__dialog-footer { padding: 18px 24px; border-top: 1px solid var(--auth-line); display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.sk-auth .sk-auth__dialog-footer .sk-auth__submit { width: auto; }

@media (max-width: 540px) {
    .sk-auth .sk-auth__phone { grid-template-columns: minmax(0, 1fr); }
    .sk-auth .sk-auth__dialog-header, .sk-auth .sk-auth__dialog-body, .sk-auth .sk-auth__dialog-footer { padding: 16px; }
}

@media (max-width: 1023px) {
    .sk-auth { grid-template-columns: minmax(0, 1fr); }
    .sk-auth .sk-auth__story { display: none; }
    .sk-auth .sk-auth__panel { padding: 40px 24px 64px; background: var(--auth-canvas); }
    .sk-auth .sk-auth__heading--mobile { display: block; }
    .sk-auth .sk-auth__heading--desktop { display: none; }
    .sk-auth .sk-auth__heading .sk-auth__mark { margin-bottom: 20px; }
    .sk-auth .sk-auth__notice { background: var(--auth-surface); }
}

@media (max-width: 380px) {
    .sk-auth .sk-auth__panel { padding-left: 18px; padding-right: 18px; }
    .sk-auth .sk-auth__trust { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .sk-auth .sk-auth__input, .sk-auth .sk-auth__submit { transition: none; }
    .sk-auth .sk-auth__submit:hover { transform: none; }
}
