/* admin_panel/css/auth.css
 * Oturumsuz kimlik sayfaları (login, forgot, invite, change password).
 * Renkler body.login-page üzerindeki --auth-* değişkenlerinden gelir.
 */

*, *::before, *::after { box-sizing: border-box; }

body.login-page {
    --auth-overlay: .35;
    --auth-mx: 50%;
    --auth-my: 18%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 28px 20px;
    overflow-x: hidden;
    isolation: isolate;
    font-family: var(--font-sans, Inter, system-ui, sans-serif);
    color: var(--auth-text, #111827);
    background-color: var(--auth-bg, #f9fafb);
    background-image: none;
}

body.login-page.has-bg-image {
    background-image:
        linear-gradient(rgba(15, 23, 42, var(--auth-overlay)), rgba(15, 23, 42, var(--auth-overlay))),
        var(--auth-bg-image, none);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

body.login-page::before {
    content: "";
    position: fixed;
    inset: -18%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(520px circle at var(--auth-mx) var(--auth-my), rgba(var(--auth-accent-rgb, 74, 85, 104), .26), transparent 52%),
        radial-gradient(closest-side, rgba(var(--auth-accent-rgb, 74, 85, 104), .42), transparent 72%) 6% -4% / 58% 54% no-repeat,
        radial-gradient(closest-side, rgba(var(--auth-accent-rgb, 74, 85, 104), .24), transparent 70%) 108% 108% / 54% 50% no-repeat,
        radial-gradient(closest-side, rgba(var(--auth-accent-rgb, 74, 85, 104), .18), transparent 68%) 48% 82% / 32% 30% no-repeat;
    animation: authAurora 22s ease-in-out infinite;
}
body.login-page.has-bg-image::before {
    opacity: .72;
    mix-blend-mode: overlay;
}

body.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    background-size: 56px 56px, 56px 56px, 180px 180px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 12%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 12%, transparent 78%);
    opacity: .55;
}
body.login-page.has-bg-image::after {
    opacity: .28;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

html:has(body.login-page.auth-preview) { height: 100%; }
body.login-page.auth-preview {
    min-height: 100%;
    height: 100%;
    padding: 10px;
    overflow: auto;
    align-items: stretch;
    justify-content: center;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--auth-card, #fff);
    border: 1px solid color-mix(in srgb, var(--auth-accent, #4a5568) 22%, var(--auth-border, #e5e7eb));
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 22px 56px rgba(15, 23, 42, .14),
        0 0 80px rgba(var(--auth-accent-rgb, 74, 85, 104), .18);
    color: var(--auth-text, #111827);
    overflow: visible;
    animation: authRise .7s cubic-bezier(.22, 1, .36, 1);
}
.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(145deg, rgba(var(--auth-accent-rgb, 74, 85, 104), .55), rgba(255, 255, 255, .35) 32%, transparent 58%, rgba(var(--auth-accent-rgb, 74, 85, 104), .22));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
body.has-bg-image .auth-shell {
    background: color-mix(in srgb, var(--auth-card, #fff) 82%, transparent);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, .32),
        0 0 90px rgba(var(--auth-accent-rgb, 74, 85, 104), .22);
}

.auth-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    width: 100%;
    overflow: visible;
    color: inherit;
}

.auth-brand-copy { display: none; }

.auth-header {
    text-align: center;
    padding: 28px 28px 0;
}
.auth-header .auth-logo,
.auth-logo {
    max-width: 180px;
    max-height: var(--auth-logo-h, 64px);
    margin-bottom: 4px;
    object-fit: contain;
    animation: authLogoFloat 5.6s ease-in-out infinite;
}

.login-layout-split .auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
    max-width: 920px;
    min-height: 540px;
    overflow: hidden;
}
.login-layout-split .auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 40px 36px;
    background:
        radial-gradient(ellipse 90% 80% at 12% 8%, rgba(255, 255, 255, .22), transparent 52%),
        linear-gradient(165deg, rgba(var(--auth-accent-rgb, 74, 85, 104), .96), rgba(var(--auth-accent-rgb, 74, 85, 104), .58));
    color: var(--auth-accent-fg, #fff);
}
.login-layout-split .auth-brand > * { position: relative; z-index: 1; }
.login-layout-split .auth-brand::after {
    content: "";
    position: absolute;
    width: 170%;
    height: 90%;
    left: -40%;
    bottom: -45%;
    pointer-events: none;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .2), transparent 62%);
    animation: authAurora 16s ease-in-out infinite reverse;
}
.login-layout-split .auth-brand .auth-header {
    text-align: left;
    padding: 0;
}
.login-layout-split .auth-brand .auth-logo {
    max-height: calc(var(--auth-logo-h, 64px) + 16px);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .18));
}
.login-layout-split .auth-brand-copy {
    display: block;
}
.login-layout-split .auth-brand-copy h1 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: inherit;
}
.login-layout-split .auth-brand-copy p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
    opacity: .88;
}
.login-layout-split .auth-brand-help {
    margin-top: 16px !important;
    font-size: .8rem !important;
    opacity: .72;
}
.login-layout-split .auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--auth-card, #fff);
    color: var(--auth-text, #111827);
    min-height: 0;
    overflow: auto;
}
.login-layout-split .auth-pane { position: relative; }
.login-layout-split .auth-pane:not(#pane-2fa) .auth-pane-header {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.login-layout-split .auth-help { display: none; }
.login-layout-split.has-bg-image .auth-card {
    background: color-mix(in srgb, var(--auth-card, #fff) 90%, transparent);
}

.auth-tabs {
    display: flex;
    gap: 3px;
    margin: 16px 28px 0;
    padding: 3px;
    border: none;
    border-radius: 14px;
    background: var(--auth-input-bg, rgba(15, 23, 42, .05));
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, .04);
}
.auth-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    font-size: .84rem;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--auth-text-muted, #6b7280);
    position: relative;
    letter-spacing: .005em;
    font-family: inherit;
    border-radius: 11px;
    transition: background .15s, color .15s, box-shadow .15s;
}
.auth-tab-btn .auth-ico {
    width: 15px;
    height: 15px;
    color: currentColor;
}
.auth-tab-btn:hover { color: var(--auth-text, #111827); }
.auth-tab-btn.active {
    color: var(--auth-accent, #4a5568);
    background: var(--auth-card, #fff);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .08),
        0 0 0 1px color-mix(in srgb, var(--auth-accent, #4a5568) 20%, transparent);
}
.auth-tab-btn.active .auth-ico { color: var(--auth-accent, #4a5568); }
.auth-tab-btn.active::after { content: none; }
.auth-tab-btn:focus-visible {
    outline: 2px solid var(--auth-accent, #4a5568);
    outline-offset: 2px;
}

.auth-pane.active.auth-maint {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}
.auth-maint-badge {
    width: 76px;
    height: 76px;
    margin: 4px auto 20px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-accent, #4a5568);
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .62), transparent 58%),
        rgba(var(--auth-accent-rgb, 74, 85, 104), .14);
    box-shadow:
        inset 0 0 0 1px rgba(var(--auth-accent-rgb, 74, 85, 104), .22),
        0 12px 28px rgba(var(--auth-accent-rgb, 74, 85, 104), .16);
    animation: authLogoFloat 5.6s ease-in-out infinite;
}
.auth-maint-badge .auth-ico,
.auth-maint-badge .icon-set-wrapper {
    width: 34px;
    height: 34px;
    color: inherit;
}
.auth-maint-badge svg { width: 34px; height: 34px; display: block; }
.auth-maint .auth-pane-header {
    width: 100%;
    margin-bottom: 0;
}
.auth-maint .auth-pane-header h1 { margin-bottom: 8px; }
.auth-maint .auth-pane-header p { margin-bottom: 0; }
.auth-maint-msg {
    margin: 16px 0 0;
    max-width: 38ch;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--auth-text, #111827);
}
.auth-maint-until {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px auto 0;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--auth-input-bg, rgba(15, 23, 42, .05));
    border: 1px solid color-mix(in srgb, var(--auth-accent, #4a5568) 16%, var(--auth-border, #e5e7eb));
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--auth-text-muted, #6b7280);
}
.auth-maint-until .auth-ico { color: var(--auth-accent, #4a5568); }
.auth-maint-until time { color: var(--auth-text, #111827); font-weight: 700; }
.auth-maint .auth-btn {
    margin-top: 24px;
    width: 100%;
    max-width: 280px;
}
.login-layout-split .auth-pane.active.auth-maint {
    justify-content: center;
    min-height: 100%;
    padding-top: 36px;
    padding-bottom: 36px;
}

.auth-maint-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 28px 0;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(var(--auth-accent-rgb, 74, 85, 104), .08);
    border: 1px solid color-mix(in srgb, var(--auth-accent, #4a5568) 22%, var(--auth-border, #e5e7eb));
    color: var(--auth-text, #111827);
    text-align: left;
}
.auth-maint-note-ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--auth-accent, #4a5568);
    background: var(--auth-card, #fff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.auth-maint-note-ico .auth-ico,
.auth-maint-note-ico svg { width: 18px; height: 18px; }
.auth-maint-note-body { min-width: 0; }
.auth-maint-note-body strong {
    display: block;
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: -.01em;
    margin-bottom: 3px;
}
.auth-maint-note-body p {
    margin: 0;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--auth-text-muted, #6b7280);
}
.auth-maint-note-body time { color: var(--auth-text, #111827); font-weight: 650; }

.auth-pane { display: none; padding: 26px 28px 28px; }
.auth-pane.active { display: block; }
.auth-pane.active.auth-maint { display: flex; }
.login-layout-split .auth-pane { padding: 28px 28px 32px; }
.login-layout-split .auth-tabs { margin: 20px 28px 0; }

.auth-pane-header h1 {
    font-size: 1.42rem;
    font-weight: 750;
    letter-spacing: -.02em;
    margin: 0 0 6px;
    color: var(--auth-text, #111827);
}
.auth-pane-header p {
    font-size: .9rem;
    line-height: 1.45;
    color: var(--auth-text-muted, #6b7280);
    margin: 0 0 22px;
}

.f-group { margin-bottom: 16px; }
.f-group label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 6px;
    color: var(--auth-text, #111827);
}
.f-group input[type="text"],
.f-group input[type="email"],
.f-group input[type="password"] {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid var(--auth-input-border, #d1d5db);
    border-radius: 11px;
    font-size: .95rem;
    background: var(--auth-input-bg, #fafafa);
    color: var(--auth-input-fg, #111827);
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.f-group input:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.f-group input:focus {
    outline: none;
    border-color: var(--auth-accent, #4a5568);
    box-shadow: 0 0 0 4px var(--auth-focus, rgba(74, 85, 104, 0.18));
    background: var(--auth-input-focus-bg, var(--auth-card, #fff));
}

.auth-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 44px;
    padding: 11px 16px;
    font-size: .9rem;
    font-weight: 650;
    letter-spacing: .01em;
    color: #fff;
    background: linear-gradient(100deg, var(--primary-color, #001848) 0%, var(--menu-icon-color, #00a890) 100%);
    border: none;
    border-radius: 11px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    box-shadow:
        0 1px 2px rgba(0, 24, 72, .12),
        0 6px 16px rgba(0, 168, 144, .22);
    transition: filter .15s, box-shadow .15s, transform .15s;
}
.auth-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 52%);
    pointer-events: none;
}
.auth-btn.is-loading::before { display: none; }
.auth-btn:hover {
    filter: brightness(1.07);
    box-shadow:
        0 4px 16px rgba(0, 168, 144, .3),
        0 1px 2px rgba(0, 24, 72, .1);
}
.auth-btn:active { transform: scale(.99); filter: brightness(.96); }
.auth-btn:focus-visible {
    outline: 2px solid var(--menu-icon-color, #00a890);
    outline-offset: 2px;
}
.auth-btn .auth-ico { color: inherit; }

.login-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .85rem;
    margin-bottom: 16px;
}
.auth-remember {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--auth-text-muted, #6b7280);
    user-select: none;
}
.auth-remember input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.auth-remember-track {
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: var(--auth-input-border, #d1d5db);
    position: relative;
    flex-shrink: 0;
    transition: background .15s;
}
.auth-remember-track::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--auth-card, #fff);
    top: 2px;
    left: 2px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .22);
    transition: transform .15s;
}
.auth-remember input:checked + .auth-remember-track {
    background: var(--auth-accent, #4a5568);
}
.auth-remember input:checked + .auth-remember-track::after {
    transform: translateX(16px);
}
.auth-remember input:focus-visible + .auth-remember-track {
    outline: 2px solid var(--auth-accent, #4a5568);
    outline-offset: 2px;
}
.auth-remember-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
}
.auth-forgot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--auth-text-muted, #6b7280);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
}
.auth-forgot:hover { text-decoration: underline; color: var(--auth-accent, #4a5568); }
.login-extra a {
    color: var(--auth-text-muted, #6b7280);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
}
.login-extra a:hover { text-decoration: underline; color: var(--auth-accent, #4a5568); }

.auth-ico,
.icon-set-wrapper.auth-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
    line-height: 0;
}
.auth-ico svg { display: block; }

.auth-input-wrap { position: relative; width: 100%; }
.auth-input-wrap > .auth-input-ico {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--auth-text-muted, #6b7280);
    pointer-events: none;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.f-group .auth-input-wrap > input[type="text"],
.f-group .auth-input-wrap > input[type="email"],
.f-group .auth-input-wrap > input[type="password"] {
    padding-left: 40px;
}
.f-group .pw-wrap > input[type="password"] {
    padding-right: 44px;
}

.msg-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 11px;
    margin-bottom: 16px;
    font-size: .875rem;
    line-height: 1.45;
}
.msg-box .auth-ico { margin-top: 1px; }
.msg-box.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.msg-box.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.msg-box.info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.msg-box.warn    { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.auth-lockout { align-items: flex-start; }
.auth-lockout-copy { min-width: 0; }
.auth-lockout-copy p { margin: 0; }
.auth-lockout-eta {
    margin-top: 6px !important;
    font-weight: 650;
}
.auth-lockout-time {
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    letter-spacing: .04em;
}

.auth-btn.is-loading {
    pointer-events: none;
    opacity: .85;
    position: relative;
    color: transparent !important;
    box-shadow: none;
}
.auth-btn.is-loading .auth-ico { visibility: hidden; }
.auth-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 50%; top: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin .7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }
@keyframes authRise {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: none; }
}
@keyframes authAurora {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(2.4%, -1.8%) rotate(5deg) scale(1.07); }
}
@keyframes authLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
button.is-loading:not(.auth-btn) { opacity: .5; pointer-events: none; }

.auth-btn-ghost {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 14px;
    margin-top: 10px;
    border-radius: 11px;
    border: 1.5px solid var(--auth-input-border, #d1d5db);
    background: transparent;
    font-size: .9rem;
    font-weight: 600;
    color: var(--auth-text-muted, #4b5563);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}
.auth-btn-ghost:hover {
    border-color: var(--auth-text-muted, #9ca3af);
    color: var(--auth-text, #111827);
}

.auth-help {
    text-align: center;
    margin-top: 16px;
    font-size: .8rem;
    color: var(--auth-text-muted, #9ca3af);
    padding: 0 4px;
    line-height: 1.45;
}

.auth-switch-link {
    text-align: center;
    margin-top: 16px;
    font-size: .85rem;
    color: var(--auth-text-muted, #6b7280);
}
.auth-switch-link a,
.auth-switch-link button.auth-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--auth-accent, #4a5568);
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}
.auth-switch-link a:hover,
.auth-switch-link button.auth-switch:hover { text-decoration: underline; }

.auth-divider { height: 1px; background: var(--auth-divider, rgba(15, 23, 42, 0.07)); margin: 18px 0; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--auth-text-muted, #9ca3af);
    padding: 6px;
    line-height: 1;
    border-radius: 8px;
    z-index: 2;
}
.pw-toggle:hover { color: var(--auth-text, #555); }
.pw-toggle:focus-visible {
    outline: 2px solid var(--auth-accent, #4a5568);
    outline-offset: 1px;
}

.pw-meter { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pw-meter[hidden] { display: none !important; }
.pw-meter-bar {
    flex: 1; height: 5px;
    background: var(--auth-divider, #e5e7eb);
    border-radius: 3px; overflow: hidden;
}
.pw-meter-bar span {
    display: block; height: 100%; width: 0;
    border-radius: 3px; transition: width .25s, background .25s;
}
.pw-meter-bar span.is-weak { background: #ef4444; }
.pw-meter-bar span.is-medium { background: #f59e0b; }
.pw-meter-bar span.is-strong { background: #16a34a; }
.pw-meter-label { font-size: .72rem; font-weight: 600; color: var(--auth-text-muted, #9ca3af); min-width: 44px; text-align: right; }
.pw-meter-label.is-weak { color: #ef4444; }
.pw-meter-label.is-medium { color: #f59e0b; }
.pw-meter-label.is-strong { color: #16a34a; }

.pw-reqs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pw-reqs li {
    font-size: .72rem;
    color: var(--auth-text-muted, #9ca3af);
    display: flex;
    align-items: center;
    gap: 4px;
}
.pw-reqs li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; flex-shrink: 0; }
.pw-reqs li.ok { color: #16a34a; }
.pw-reqs li.ok::before { opacity: 1; }

.fld-live-hint { font-size: .74rem; margin-top: 5px; display: none; }
.fld-live-hint.err { display: block; color: #b91c1c; }
.fld-live-hint.ok  { display: block; color: #16a34a; }
.caps-hint {
    display: none;
    font-size: .74rem;
    color: #b45309;
    margin-top: 5px;
    align-items: center;
    gap: 5px;
}
.caps-hint.on { display: flex; }

.terms-group { margin: 2px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.auth-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 2px 0;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--auth-text, #111827);
    line-height: 1.4;
    user-select: none;
}
.auth-check:hover .auth-check-box {
    border-color: var(--auth-accent, #4a5568);
}
.auth-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.auth-check-box {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 6px;
    border: 1.5px solid var(--auth-input-border, #d1d5db);
    background: var(--auth-input-bg, #fafafa);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--auth-accent-fg, #fff);
    transition: background .15s, border-color .15s;
}
.auth-check-box .auth-ico {
    width: 12px;
    height: 12px;
    opacity: 0;
}
.auth-check input:checked + .auth-check-box {
    background: var(--auth-accent, #4a5568);
    border-color: var(--auth-accent, #4a5568);
}
.auth-check input:checked + .auth-check-box .auth-ico { opacity: 1; }
.auth-check input:focus-visible + .auth-check-box {
    outline: 2px solid var(--auth-accent, #4a5568);
    outline-offset: 2px;
}
.auth-check-text { font-size: .8rem; min-width: 0; }
.auth-check-text a {
    color: var(--auth-accent, #4a5568);
    font-weight: 650;
    text-decoration: none;
}
.auth-check-text a:hover { text-decoration: underline; }

.auth-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    margin-top: 16px;
    padding: 0 4px;
}
.auth-policy-links a {
    font-size: .72rem;
    color: var(--auth-text-muted, #9ca3af);
    text-decoration: none;
}
.auth-policy-links a:hover { text-decoration: underline; }

.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.reg-done { text-align: center; padding: 40px 28px; }
.reg-done .rd-icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
}
.reg-done h1 { font-size: 1.3rem; font-weight: 750; margin: 0 0 8px; }
.reg-done p  { font-size: .875rem; color: var(--auth-text-muted, #666); margin: 0 0 22px; line-height: 1.55; }
.reg-done p strong { color: var(--auth-text, #111); }

.resend-wrap { margin: -6px 0 16px; text-align: right; }
.resend-wrap button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: .8rem;
    font-weight: 600;
    color: var(--auth-accent, #4a5568);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.resend-wrap button:hover { text-decoration: underline; }

.auth-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--auth-text-muted, #9ca3af);
    font-size: .78rem;
}
.auth-or::before,
.auth-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-divider, #e5e7eb);
}

.btn-google {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 11px;
    font-size: .9rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}
.btn-google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}
.btn-google svg { flex-shrink: 0; }

.auth-recaptcha { margin-bottom: 16px; overflow: auto; max-width: 100%; }

.login-lang-switcher {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    padding: 4px 20px 18px;
}
.login-layout-split .login-lang-switcher {
    margin-top: auto;
    padding: 8px 28px 22px;
}
body.auth-preview .login-lang-switcher { display: none; }

.login-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--auth-text-muted, #6b7280);
    cursor: pointer;
    font-family: inherit;
}
.login-lang-btn:hover {
    color: var(--auth-text, #111827);
    background: var(--auth-input-bg, rgba(15, 23, 42, .05));
}
.login-lang-btn:focus-visible {
    outline: 2px solid var(--auth-accent, #4a5568);
    outline-offset: 2px;
}
.login-lang-btn > .auth-ico svg { opacity: .5; transition: transform .2s; }
.login-lang-switcher.open .login-lang-btn > .auth-ico svg { transform: rotate(180deg); }
.login-lang-check { margin-left: auto; display: inline-flex; }
.login-lang-dropdown {
    display: none;
    position: absolute;
    left: 50%;
    right: auto;
    bottom: calc(100% + 8px);
    top: auto;
    transform: translateX(-50%);
    background: color-mix(in srgb, var(--auth-card, #fff) 96%, transparent);
    border: 1px solid var(--auth-border, rgba(15, 23, 42, 0.12));
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    min-width: 168px;
    z-index: 20;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.login-lang-switcher.open .login-lang-dropdown { display: block; }
.login-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: .85rem;
    color: var(--auth-text, #334155);
    text-decoration: none;
}
.login-lang-option:hover { background: var(--auth-input-bg, rgba(15, 23, 42, 0.04)); }
.login-lang-option.active { font-weight: 650; color: var(--auth-accent, #4a5568); }

body.auth-preview .auth-shell {
    animation: none;
    max-width: 100%;
}
body.auth-preview.login-page::before,
body.auth-preview .auth-logo,
body.auth-preview .auth-btn::before,
body.auth-preview.login-layout-split .auth-brand::after { animation: none; }
body.auth-preview.login-layout-split .auth-shell {
    min-height: calc(100% - 4px);
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
}
body.auth-preview.login-layout-split .auth-brand { padding: 18px 16px; }
body.auth-preview.login-layout-split .auth-brand-copy h1 { font-size: 1.15rem; }
body.auth-preview.login-layout-split .auth-pane { padding: 16px; }

@media (max-width: 720px) {
    .login-layout-split .auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        max-width: 420px;
    }
    .login-layout-split .auth-brand {
        padding: 22px 22px 8px;
        background: transparent;
        color: var(--auth-text, #111827);
    }
    .login-layout-split .auth-brand::after { display: none; }
    .login-layout-split .auth-brand-copy { display: none; }
    .login-layout-split .auth-pane:not(#pane-2fa) .auth-pane-header {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        clip: auto;
        overflow: visible;
        white-space: normal;
    }
    .login-layout-split .auth-help { display: block; }
    .login-layout-split .auth-card { background: transparent; }
    .login-layout-split .auth-brand .auth-header { text-align: center; }
}

@media (max-width: 480px) {
    body.login-page { padding: 14px 12px; align-items: flex-start; }
    .auth-shell { max-width: 100%; border-radius: 16px; }
    .auth-pane { padding: 20px 18px 22px; }
    .auth-header { padding: 22px 18px 0; }
    .auth-tabs { margin: 14px 18px 0; }
    .auth-tab-btn { font-size: .8rem; padding: 9px 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-shell,
    body.login-page::before,
    .auth-logo,
    .auth-maint-badge,
    .auth-btn::before,
    .login-layout-split .auth-brand::after { animation: none; }
    .auth-btn.is-loading::after { animation: none; }
    .login-lang-btn > .auth-ico svg { transition: none; }
    .auth-remember-track,
    .auth-remember-track::after { transition: none; }
}
