:root {
    color-scheme: dark;
    --bg: #0b0d12;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.1);
    --text: #f6f2ea;
    --muted: rgba(246, 242, 234, 0.68);
    --muted-strong: rgba(246, 242, 234, 0.82);
    --accent: #f1ba6d;
    --accent-soft: rgba(241, 186, 109, 0.18);
    --accent-cold: #84d4ff;
    --accent-cold-soft: rgba(132, 212, 255, 0.14);
    --danger: #ff8f8f;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    --bg-glow-warm: rgba(241, 186, 109, 0.12);
    --bg-glow-cold: rgba(132, 212, 255, 0.14);
    --bg-glow-neutral: rgba(255, 255, 255, 0.05);
    --bg-start: #0b0d12;
    --bg-mid: #10131a;
    --bg-end: #0b0d12;
    --grid-line: rgba(255, 255, 255, 0.03);
    --vignette-soft: rgba(11, 13, 18, 0.06);
    --vignette-strong: rgba(11, 13, 18, 0.84);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #dfe5ee;
    --panel: rgba(255, 255, 255, 0.22);
    --panel-strong: rgba(255, 255, 255, 0.34);
    --line: rgba(23, 29, 39, 0.1);
    --text: #18202b;
    --muted: rgba(24, 32, 43, 0.68);
    --muted-strong: rgba(24, 32, 43, 0.82);
    --accent: #cf9452;
    --accent-soft: rgba(207, 148, 82, 0.15);
    --accent-cold: #5fa7d2;
    --accent-cold-soft: rgba(95, 167, 210, 0.12);
    --shadow: 0 28px 72px rgba(126, 142, 162, 0.18);
    --bg-glow-warm: rgba(218, 167, 101, 0.18);
    --bg-glow-cold: rgba(109, 171, 209, 0.14);
    --bg-glow-neutral: rgba(255, 255, 255, 0.18);
    --bg-start: #d8dee8;
    --bg-mid: #cfd8e5;
    --bg-end: #d7dde7;
    --grid-line: rgba(23, 34, 51, 0.032);
    --vignette-soft: rgba(255, 255, 255, 0.04);
    --vignette-strong: rgba(149, 164, 184, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background:
        radial-gradient(circle at 18% 18%, var(--bg-glow-warm), transparent 28%),
        radial-gradient(circle at 82% 16%, var(--bg-glow-cold), transparent 24%),
        radial-gradient(circle at 50% 84%, var(--bg-glow-neutral), transparent 26%),
        linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 44%, var(--bg-end) 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    background:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
    opacity: 0.18;
}

body::after {
    background: radial-gradient(circle at center, transparent 0%, var(--vignette-soft) 42%, var(--vignette-strong) 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

.ambient-light {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02), transparent 60%);
}

.spot {
    position: fixed;
    border-radius: 50%;
    filter: blur(26px);
    z-index: -2;
    animation: float 22s ease-in-out infinite alternate;
}

.s1 {
    width: 34vw;
    height: 34vw;
    min-width: 320px;
    min-height: 320px;
    top: -10vw;
    left: -8vw;
    background: radial-gradient(circle, rgba(241, 186, 109, 0.28), rgba(241, 186, 109, 0.02) 62%, transparent 76%);
}

.s2 {
    width: 28vw;
    height: 28vw;
    min-width: 260px;
    min-height: 260px;
    right: -4vw;
    top: 12vh;
    background: radial-gradient(circle, rgba(132, 212, 255, 0.22), rgba(132, 212, 255, 0.02) 60%, transparent 74%);
    animation-duration: 26s;
}

.s3 {
    width: 32vw;
    height: 32vw;
    min-width: 300px;
    min-height: 300px;
    left: 34vw;
    bottom: -16vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.01) 56%, transparent 76%);
    animation-duration: 30s;
}

.logo-link {
    position: fixed;
    top: 28px;
    left: 34px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(246, 242, 234, 0.84);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo-link:hover {
    color: #fff;
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(660px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 0 40px;
}

.auth-panel {
    position: relative;
    width: 100%;
}

.auth-panel::before,
.auth-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

.auth-panel::before {
    width: 140px;
    height: 140px;
    top: -18px;
    right: -28px;
    background: radial-gradient(circle, rgba(241, 186, 109, 0.16), rgba(241, 186, 109, 0.02) 62%, transparent 80%);
}

.auth-panel::after {
    width: 130px;
    height: 130px;
    left: -18px;
    bottom: -18px;
    background: radial-gradient(circle, rgba(132, 212, 255, 0.14), rgba(132, 212, 255, 0.02) 60%, transparent 80%);
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 32px;
    box-shadow: 0 28px 82px rgba(0, 0, 0, 0.26);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.form-box {
    display: none;
    animation: fadeIn .35s ease;
}

.form-box.active {
    display: block;
}

.form-header {
    text-align: left;
    margin-bottom: 18px;
}

.form-header h2 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #fff9f2;
}

.form-header p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-switch {
    margin-top: 10px;
    color: rgba(246, 242, 234, 0.54);
    font-size: 12px;
    line-height: 1.5;
}

.auth-switch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(241, 186, 109, 0.28);
    background: linear-gradient(135deg, rgba(241, 186, 109, 0.18), rgba(132, 212, 255, 0.12));
    color: #fff8ee;
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.auth-switch-link:hover {
    color: #ffffff;
    border-color: rgba(132, 212, 255, 0.34);
    background: linear-gradient(135deg, rgba(241, 186, 109, 0.24), rgba(132, 212, 255, 0.18));
    transform: translateY(-1px);
}

.login-type-switch {
    position: relative;
    display: flex;
    margin-bottom: 18px;
    padding: 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    --type-index: 0;
}

.type-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 8px) / 2);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(241, 186, 109, 0.14), rgba(132, 212, 255, 0.08)),
        rgba(255, 255, 255, 0.04);
    transform: translateX(calc(var(--type-index, 0) * 100%));
    transition: transform .28s ease;
    pointer-events: none;
}

.type-btn {
    flex: 1;
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    color: rgba(246, 242, 234, 0.58);
    padding: 11px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.type-btn.active {
    color: #fff8ee;
}

.register-wizard {
    --wizard-step: 1;
}

.wizard-progress {
    position: relative;
    height: 3px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.wizard-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--wizard-step, 1) / 3 * 100%);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(241, 186, 109, 0.92), rgba(132, 212, 255, 0.82));
    transition: width .28s ease;
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.wizard-step-pill {
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(246, 242, 234, 0.5);
    transition: border-color .2s ease, color .2s ease;
}

.wizard-step-pill.active {
    border-color: rgba(241, 186, 109, 0.38);
    color: #fff8ee;
}

.wizard-step-pill.done {
    border-color: rgba(132, 212, 255, 0.28);
    color: rgba(246, 242, 234, 0.76);
}

.wizard-step-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wizard-step-note {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(246, 242, 234, 0.4);
}

.wizard-step-pill.active .wizard-step-note,
.wizard-step-pill.done .wizard-step-note {
    color: rgba(255, 248, 238, 0.62);
}

.wizard-stage {
    display: none;
    animation: fadeIn .28s ease;
}

.wizard-stage.active {
    display: block;
}

.wizard-card {
    padding: 0;
    border: 0;
    background: transparent;
}

.wizard-card-head {
    margin-bottom: 16px;
}

.wizard-card-head h3 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #fff9f2;
}

.wizard-card-head p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(246, 242, 234, 0.82);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.wizard-next {
    margin-left: auto;
}

.input-group {
    margin-bottom: 14px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(246, 242, 234, 0.74);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.input-field {
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045)),
        rgba(14, 18, 26, 0.72);
    color: #fffdf8;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 24px rgba(0, 0, 0, 0.16);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.input-field::placeholder {
    color: rgba(246, 242, 234, 0.44);
}

.input-field:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.05)),
        rgba(16, 20, 28, 0.78);
}

.input-field:focus {
    border-color: rgba(241, 186, 109, 0.48);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.055)),
        rgba(18, 22, 30, 0.82);
    box-shadow:
        0 0 0 3px rgba(241, 186, 109, 0.1),
        0 12px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .input-field {
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(246, 242, 234, 0.66);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.toggle-password:hover {
    color: #fff;
}

.eye-open,
.eye-closed {
    display: none;
}

.input-hint {
    margin-top: 8px;
    color: rgba(246, 242, 234, 0.56);
    font-size: 12px;
    line-height: 1.65;
}

.code-access-input {
    text-align: center;
    letter-spacing: 5px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.center-label {
    text-align: center;
}

.verify-actions {
    margin-top: 15px;
    text-align: center;
}

.back-link {
    color: rgba(246, 242, 234, 0.56);
    font-size: 12px;
    cursor: pointer;
}

.back-link:hover {
    color: #fff;
}

.role-selector {
    display: flex;
    gap: 10px;
}

.role-option {
    flex: 1;
    cursor: pointer;
}

.role-option input {
    display: none;
}

.role-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 72px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(246, 242, 234, 0.58);
    font-size: 12px;
    font-weight: 700;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.role-option input:checked + .role-box {
    background:
        linear-gradient(135deg, rgba(241, 186, 109, 0.16), rgba(132, 212, 255, 0.12)),
        rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff8ee;
}

.role-icon {
    font-size: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 6px 0 18px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(246, 242, 234, 0.58);
    font-size: 13px;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.checkbox-label input:checked ~ .checkmark {
    background: linear-gradient(135deg, rgba(241, 186, 109, 0.9), rgba(132, 212, 255, 0.82));
    border-color: transparent;
}

.checkbox-label input:checked ~ .checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #071019;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-pass {
    color: rgba(246, 242, 234, 0.78);
    font-size: 12px;
    font-weight: 600;
}

.forgot-pass:hover {
    color: #fff;
}

.btn-submit {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 800;
    color: #0b0d12;
    cursor: pointer;
    background: linear-gradient(135deg, #f5c98b, #f1ba6d 44%, #84d4ff);
    box-shadow: 0 14px 30px rgba(241, 186, 109, 0.18);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(241, 186, 109, 0.22);
    filter: saturate(1.06);
}

:root[data-theme="light"] .ambient-light {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 60%);
}

:root[data-theme="light"] .spot {
    filter: blur(34px);
    opacity: 0.86;
}

:root[data-theme="light"] .logo-link {
    color: rgba(24, 32, 43, 0.84);
}

:root[data-theme="light"] .logo-link:hover {
    color: rgba(24, 32, 43, 1);
}

:root[data-theme="light"] .auth-container {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(243, 246, 250, 0.2)),
        rgba(255, 255, 255, 0.18);
    border-color: rgba(23, 29, 39, 0.08);
    box-shadow: 0 28px 72px rgba(126, 142, 162, 0.2);
}

:root[data-theme="light"] .form-header h2,
:root[data-theme="light"] .wizard-card-head h3 {
    color: rgba(24, 32, 43, 0.94);
}

:root[data-theme="light"] .form-header p,
:root[data-theme="light"] .wizard-card-head p,
:root[data-theme="light"] .auth-switch,
:root[data-theme="light"] .wizard-step-note,
:root[data-theme="light"] .checkbox-label,
:root[data-theme="light"] .forgot-pass,
:root[data-theme="light"] .back-link,
:root[data-theme="light"] .input-hint {
    color: rgba(24, 32, 43, 0.6);
}

:root[data-theme="light"] .auth-switch-link {
    border-color: rgba(23, 29, 39, 0.12);
    background: linear-gradient(135deg, rgba(207, 148, 82, 0.16), rgba(95, 167, 210, 0.12));
    color: rgba(24, 32, 43, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

:root[data-theme="light"] .auth-switch-link:hover {
    color: rgba(24, 32, 43, 0.96);
    border-color: rgba(95, 167, 210, 0.24);
    background: linear-gradient(135deg, rgba(207, 148, 82, 0.22), rgba(95, 167, 210, 0.16));
}

:root[data-theme="light"] .login-type-switch {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(23, 29, 39, 0.08);
}

:root[data-theme="light"] .type-indicator {
    background:
        linear-gradient(135deg, rgba(207, 148, 82, 0.14), rgba(95, 167, 210, 0.08)),
        rgba(255, 255, 255, 0.22);
}

:root[data-theme="light"] .type-btn,
:root[data-theme="light"] .wizard-step-pill,
:root[data-theme="light"] .role-box {
    color: rgba(24, 32, 43, 0.58);
}

:root[data-theme="light"] .type-btn.active,
:root[data-theme="light"] .wizard-step-pill.active,
:root[data-theme="light"] .wizard-step-pill.done {
    color: rgba(24, 32, 43, 0.9);
}

:root[data-theme="light"] .wizard-step-pill {
    border-bottom-color: rgba(23, 29, 39, 0.08);
}

:root[data-theme="light"] .wizard-step-pill.active {
    border-color: rgba(207, 148, 82, 0.32);
}

:root[data-theme="light"] .wizard-step-pill.done {
    border-color: rgba(95, 167, 210, 0.24);
}

:root[data-theme="light"] .btn-ghost,
:root[data-theme="light"] .role-box,
:root[data-theme="light"] .checkmark {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(23, 29, 39, 0.1);
}

:root[data-theme="light"] .btn-ghost,
:root[data-theme="light"] .input-group label {
    color: rgba(24, 32, 43, 0.74);
}

:root[data-theme="light"] .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(23, 29, 39, 0.16);
}

:root[data-theme="light"] .role-option input:checked + .role-box {
    background:
        linear-gradient(135deg, rgba(207, 148, 82, 0.16), rgba(95, 167, 210, 0.12)),
        rgba(255, 255, 255, 0.22);
    border-color: rgba(23, 29, 39, 0.12);
    color: rgba(24, 32, 43, 0.9);
}

:root[data-theme="light"] .input-field {
    border-color: rgba(23, 29, 39, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(243, 246, 250, 0.24)),
        rgba(232, 237, 244, 0.92);
    color: rgba(24, 32, 43, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 10px 24px rgba(126, 142, 162, 0.12);
}

:root[data-theme="light"] .input-field::placeholder {
    color: rgba(24, 32, 43, 0.4);
}

:root[data-theme="light"] .input-field:hover {
    border-color: rgba(23, 29, 39, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(243, 246, 250, 0.28)),
        rgba(236, 241, 247, 0.94);
}

:root[data-theme="light"] .input-field:focus {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(243, 246, 250, 0.32)),
        rgba(239, 244, 249, 0.96);
    box-shadow:
        0 0 0 3px rgba(207, 148, 82, 0.12),
        0 12px 28px rgba(126, 142, 162, 0.14);
}

:root[data-theme="light"] .toggle-password {
    color: rgba(24, 32, 43, 0.52);
}

:root[data-theme="light"] .toggle-password:hover {
    color: rgba(24, 32, 43, 0.88);
}

.error-message,
.error-box {
    display: none;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 143, 143, 0.16);
    background: rgba(255, 143, 143, 0.08);
    color: var(--danger);
    font-size: 13px;
    line-height: 1.6;
}

.error-box[style*="display:block"],
.error-message[style*="display:block"] {
    display: block !important;
}

.code-input {
    text-align: center;
    letter-spacing: 10px;
    font-size: 24px;
    font-weight: 800;
}

@keyframes float {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(18px, -20px, 0) scale(1.06);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    body {
        overflow-y: auto;
    }

    .auth-shell {
        padding-top: 96px;
        padding-bottom: 28px;
    }
}

@media (max-width: 720px) {
    .logo-link {
        top: 18px;
        left: 20px;
    }

    .auth-shell {
        width: min(640px, calc(100% - 24px));
        padding-top: 78px;
    }

    .auth-container {
        padding: 24px 20px;
        border-radius: 26px;
    }

    .login-type-switch {
        border-radius: 16px;
    }

    .wizard-steps {
        grid-template-columns: 1fr;
    }

    .wizard-card {
        padding: 18px;
        border-radius: 20px;
    }

    .wizard-card-head h3 {
        font-size: 26px;
    }

    .wizard-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .btn-ghost,
    .btn-submit {
        width: 100%;
    }

    .wizard-next {
        margin-left: 0;
    }

    .form-header h2 {
        font-size: 28px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    :root:not([data-theme="light"]) .ambient-light {
        opacity: 0.18;
    }

    :root:not([data-theme="light"]) .spot {
        opacity: 0.42;
        filter: blur(44px);
    }

    :root:not([data-theme="light"]) .auth-panel::before,
    :root:not([data-theme="light"]) .auth-panel::after {
        opacity: 0.35;
    }

    :root:not([data-theme="light"]) .auth-container {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
            rgba(11, 13, 18, 0.82);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    :root:not([data-theme="light"]) .input-field {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
            rgba(12, 16, 23, 0.88);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            0 8px 20px rgba(0, 0, 0, 0.18);
    }

    :root:not([data-theme="light"]) .role-box,
    :root:not([data-theme="light"]) .btn-ghost,
    :root:not([data-theme="light"]) .checkmark,
    :root:not([data-theme="light"]) .login-type-switch {
        background: rgba(255, 255, 255, 0.035);
        border-color: rgba(255, 255, 255, 0.1);
    }
}
