@font-face {
    font-family: "Inter";
    src: url("assets/fonts/Inter-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("assets/fonts/Montserrat-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("assets/fonts/Lato-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("assets/fonts/Lato-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("assets/fonts/Lato-Black.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

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

.auth-page.consent-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.legal-acceptance {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.legal-acceptance-compact {
    font-size: .88rem;
    line-height: 1.45;
}

.legal-acceptance-checkbox {
    margin-top: 5px;
}

.consent-submit {
    width: 100%;
    margin-top: 20px;
}

.auth-legal-links {
    margin-top: 16px;
    text-align: center;
    font-size: .85rem;
}

.auth-legal-links-spaced {
    margin-top: 18px;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Lato', 'Inter', sans-serif;
    background: #f3faf5;
}

.auth-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    padding: 8px;
    background: linear-gradient(135deg, #f8fff7, #e6f4ee);
}

.auth-left {
    width: 42%;
    height: 100%;
    position: relative;
    overflow: hidden;
    perspective: 1200px;
    padding: 48px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 215, 64, 0.18), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(55, 180, 120, 0.28), transparent 30%),
        linear-gradient(145deg, #064421, #00664f 55%, #04351f);
    border-radius: 18px 0 0 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-left::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: 120px;
    background: radial-gradient(circle, rgba(255, 213, 48, 0.28), transparent 62%);
    filter: blur(18px);
    animation: pulseGlow 5s ease-in-out infinite;
}

.auth-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.12), transparent 42%),
        repeating-linear-gradient(120deg, transparent 0, transparent 12px, rgba(255, 221, 65, 0.08) 13px, transparent 15px);
    transform: translateX(-20%);
    animation: waveMove 8s linear infinite;
    pointer-events: none;
}

.floating-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #ffd434;
    border-radius: 50%;
    box-shadow: 0 0 18px #ffd434;
    animation: floatDot 6s ease-in-out infinite;
}

.dot-1 { top: 18%; left: 22%; animation-delay: 0s; }
.dot-2 { top: 38%; left: 72%; animation-delay: 1s; }
.dot-3 { top: 70%; left: 35%; animation-delay: 2s; }
.dot-4 { top: 82%; left: 80%; animation-delay: 3s; }

.auth-top-motion {
    position: absolute;
    top: 4%;
    right: 3%;
    width: min(430px, 54%);
    height: 250px;
    z-index: 1;
    pointer-events: none;
    transform-style: preserve-3d;
    opacity: 0.82;
}

.auth-top-motion span {
    position: absolute;
    display: block;
    border-radius: 999px;
    filter: blur(0.2px);
    transform-style: preserve-3d;
}

.auth-top-motion span:nth-child(1) {
    right: -6%;
    top: 28px;
    width: 380px;
    height: 72px;
    background: linear-gradient(100deg, transparent 4%, rgba(255, 212, 52, 0.50), rgba(61, 203, 123, 0.34), transparent 88%);
    box-shadow: 0 0 44px rgba(255, 212, 52, 0.18);
    transform: rotate(-19deg) rotateY(34deg);
    animation: topRibbonDrift 9s ease-in-out infinite;
}

.auth-top-motion span:nth-child(2) {
    right: 10%;
    top: 92px;
    width: 290px;
    height: 42px;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.26), rgba(255, 212, 52, 0.32), transparent);
    transform: rotate(-19deg) rotateY(46deg) translateZ(42px);
    animation: topRibbonDrift 11s ease-in-out infinite reverse;
}

.auth-top-motion span:nth-child(3) {
    right: 19%;
    top: 142px;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.42), rgba(255, 212, 52, 0.25) 28%, rgba(8, 118, 79, 0.14) 62%, transparent 72%);
    box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.14), 0 0 36px rgba(255, 212, 52, 0.18);
    animation: glassOrbFloat 7s ease-in-out infinite;
}

.auth-3d-scene {
    position: absolute;
    inset: auto 7% 18% auto;
    width: min(230px, 34%);
    aspect-ratio: 1;
    z-index: 1;
    transform-style: preserve-3d;
    animation: sceneFloat 7s ease-in-out infinite;
    pointer-events: none;
}

.scene-orbit,
.scene-card {
    position: absolute;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
}

.scene-orbit {
    inset: 15%;
    border: 1px solid rgba(255, 212, 52, 0.36);
    border-radius: 50%;
    box-shadow:
        inset 0 0 30px rgba(255, 212, 52, 0.12),
        0 0 38px rgba(12, 196, 105, 0.18);
}

.scene-orbit-one {
    transform: rotateX(65deg) rotateZ(-22deg);
    animation: orbitSpin 14s linear infinite;
}

.scene-orbit-two {
    inset: 24%;
    border-color: rgba(255, 255, 255, 0.26);
    transform: rotateX(72deg) rotateY(34deg);
    animation: orbitSpinReverse 17s linear infinite;
}

.scene-card {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, rgba(10, 137, 75, 0.74), rgba(2, 52, 34, 0.86));
    border-radius: 32px;
    box-shadow:
        0 30px 58px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(18px);
}

.scene-card-main {
    left: 13%;
    top: 31%;
    width: 66%;
    height: 36%;
    overflow: hidden;
    transform: rotateY(-26deg) rotateX(10deg) translateZ(46px);
}

.scene-card-main::before {
    content: "";
    position: absolute;
    inset: -35% -10%;
    background:
        radial-gradient(circle at 26% 36%, rgba(255, 212, 52, 0.72), transparent 16%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.34), transparent 20%),
        linear-gradient(110deg, transparent 16%, rgba(255, 255, 255, 0.20), transparent 44%);
    transform: rotate(-14deg);
    animation: glassSweep 5.8s ease-in-out infinite;
}

.scene-card-main i,
.scene-card-main b {
    display: block;
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.scene-card-main i {
    left: 17%;
    top: 32%;
    width: 48%;
    height: 10px;
}

.scene-card-main b {
    left: 17%;
    top: 54%;
    width: 28%;
    height: 10px;
}

.scene-card-top,
.scene-card-bottom {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    background: linear-gradient(145deg, #fff7ce, #ffd434);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.scene-card-top {
    right: 4%;
    top: 14%;
    transform: rotateY(-30deg) rotateX(16deg) translateZ(78px);
    animation: cardPulse 4.8s ease-in-out infinite;
}

.scene-card-bottom {
    left: 2%;
    bottom: 12%;
    transform: rotateY(22deg) rotateX(-12deg) translateZ(64px);
    animation: cardPulse 4.8s ease-in-out infinite 1.1s;
}

.scene-card-top::before,
.scene-card-top::after,
.scene-card-bottom::before,
.scene-card-bottom::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: #06351f;
    opacity: 0.82;
}

.scene-card-top::before {
    width: 17px;
    height: 17px;
}

.scene-card-top::after {
    width: 7px;
    height: 7px;
    transform: translate(12px, 12px);
}

.scene-card-bottom::before {
    width: 8px;
    height: 8px;
    box-shadow: 13px 0 0 #06351f, 0 13px 0 #06351f, 13px 13px 0 #06351f;
}

.scene-card-bottom::after {
    width: 21px;
    height: 2px;
    transform: translateY(19px);
}

.brand,
.left-content,
.feature-row {
    position: relative;
    z-index: 2;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-box {
    width: 54px;
    height: 54px;
    border: 2px solid #ffd434;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffd434;
    font-weight: 800;
    font-size: 22px;
}

.logo-box.has-logo {
    padding: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.logo-box.has-logo img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.brand h1 {
    font-size: 34px;
    letter-spacing: 2px;
}

.brand p {
    font-size: 14px;
    opacity: 0.9;
}

.left-content {
    max-width: 560px;
}

.left-content .eyebrow {
    color: #ffd434;
    letter-spacing: 6px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 18px;
}

.left-content h2 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    margin-bottom: 22px;
}

.left-content h2 span {
    color: #ffd434;
}

.left-content .statement {
    font-size: 18px;
    line-height: 1.8;
    max-width: 560px;
    opacity: 0.95;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-icon {
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #18b26b;
    color: #ffd434;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.feature strong {
    display: block;
    font-size: 13px;
}

.feature span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.85;
}

.auth-right {
    width: 58%;
    height: 100%;
    background: #ffffff;
    border-radius: 0 18px 18px 0;
    padding: 42px 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 1px 0 0 rgba(3, 75, 51, 0.05);
}

.form-wrap {
    width: 100%;
    max-width: 900px;
}

.form-wrap.login-wrap {
    max-width: 760px;
}

.form-wrap.register-wrap {
    max-width: 560px;
}

.form-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.form-top .label {
    color: #006143;
    letter-spacing: 6px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.form-top a,
.form-options a,
.back-login a,
.inline-link {
    color: #006143;
    text-decoration: none;
    font-weight: 700;
}

.form-wrap h2 {
    font-size: 38px;
    margin-bottom: 10px;
    color: #07120d;
}

.form-subtitle {
    margin-bottom: 24px;
    color: #5f6b66;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.registration-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.register-wrap .form-top {
    margin-bottom: 14px;
}

.register-wrap h2 {
    font-size: 34px;
    margin-bottom: 18px;
}

.register-wrap .input-group input,
.register-wrap .input-group select {
    height: 44px;
    border-radius: 12px;
}

.register-wrap .btn-create {
    height: 52px;
    border-radius: 12px;
}

.register-wrap .back-login {
    margin-top: 10px;
}

.input-group {
    position: relative;
}

.auth-field-label {
    position: absolute;
    top: 7px;
    left: 46px;
    z-index: 2;
    color: #53675d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    pointer-events: none;
}

.auth-field-label span {
    font-weight: 600;
}

.input-group.full {
    grid-column: 1 / -1;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #1b2b24;
    font-size: 16px;
    font-weight: 800;
    opacity: 0.78;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.input-group input,
.input-group select {
    width: 100%;
    height: 52px;
    border: 1px solid #cfd9e3;
    border-radius: 10px;
    padding: 0 18px 0 46px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    transition: 0.25s ease;
}

.input-group:has(.auth-field-label) input,
.input-group:has(.auth-field-label) select {
    padding-top: 16px;
}

.input-group:has(.auth-field-label) .input-icon,
.input-group:has(.auth-field-label) .password-toggle {
    top: 57%;
}

.alert[tabindex="-1"]:focus-visible {
    outline: 3px solid rgba(8, 118, 79, .34);
    outline-offset: 3px;
}

.input-group.has-password input {
    padding-right: 56px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #4f5f58;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(8, 118, 79, 0.10);
    color: #006143;
    outline: none;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.password-toggle .eye-hide {
    display: none;
}

.password-toggle.is-visible .eye-show {
    display: none;
}

.password-toggle.is-visible .eye-hide {
    display: block;
}

.login-wrap .input-group input,
.login-wrap .input-group select {
    height: 58px;
    border-radius: 12px;
}

.input-group select {
    appearance: auto;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #08764f;
    box-shadow: 0 0 0 4px rgba(8, 118, 79, 0.12);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: #31413a;
}

.form-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-options input {
    accent-color: #08764f;
}

.trusted-device-note {
    margin: -2px 0 2px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.password-guidance {
    margin: -2px 0 2px;
    padding: 11px 13px;
    border: 1px solid rgba(8, 118, 79, 0.16);
    border-radius: 12px;
    background: rgba(232, 248, 241, 0.72);
    color: #42534b;
    font-size: 13px;
    line-height: 1.45;
}

.password-guidance.is-valid {
    border-color: rgba(8, 118, 79, 0.34);
    background: rgba(221, 248, 234, 0.9);
    color: #075f43;
}

.password-guidance.is-warning {
    border-color: rgba(194, 123, 0, 0.28);
    background: rgba(255, 247, 219, 0.9);
    color: #7a4b00;
}

.btn-create,
.google-btn {
    width: 100%;
    height: 56px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 800;
    transition: 0.25s ease;
}

.login-wrap .btn-create,
.login-wrap .google-btn {
    height: 58px;
    border-radius: 12px;
}

.btn-create {
    border: none;
    background: linear-gradient(135deg, #08764f, #034b33);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(3, 75, 51, 0.25);
}

.btn-create:hover,
.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(3, 75, 51, 0.18);
}

.google-btn {
    border: 1px solid #d9e2ea;
    color: #1f2937;
    background: #ffffff;
}

.google-btn.is-disabled {
    cursor: not-allowed;
    color: #6b7a72;
    background: #f4f7f5;
    border-style: dashed;
    box-shadow: none;
}

.google-btn.is-disabled:hover {
    transform: none;
    box-shadow: none;
}

.google-signup-form {
    display: grid;
    gap: 12px;
}

.auth-muted-note {
    margin: -2px 2px 0;
    color: var(--auth-muted);
    font-size: .78rem;
    line-height: 1.45;
    text-align: center;
}

.google-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(8, 118, 79, 0.16);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(255, 251, 235, 0.72));
    color: #31413a;
    font-size: 13px;
    line-height: 1.45;
}

.google-consent input {
    margin-top: 3px;
    accent-color: #08764f;
}

.google-consent a {
    color: #047857;
    font-weight: 800;
    text-decoration: none;
}

.google-oauth-btn::before {
    content: "G";
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-right: 10px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(66, 133, 244, 0.24);
}

.google-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 22px 0;
    color: #6b7280;
}

.divider span {
    flex: 1;
    height: 1px;
    background: #d9e2ea;
}

.back-login,
.auth-message {
    text-align: center;
    margin-top: 12px;
}

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.alert.success { color: #064421; background: #dff3e7; }
.alert.warning { color: #6f5200; background: #fff4c2; }
.alert.danger { color: #8a1e1e; background: #ffe8e8; }

.otp-box {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 12px;
    background: #fff4c2;
    color: #6f5200;
    line-height: 1.55;
}

.trust-device-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(4, 120, 87, 0.2);
    border-radius: 16px;
    background: rgba(209, 250, 229, 0.52);
    color: #064e3b;
    cursor: pointer;
}

.trust-device-option input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #047857;
}

.trust-device-option strong,
.trust-device-option small {
    display: block;
}

.trust-device-option small {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.outline-btn {
    margin-top: 12px;
    border: 1px solid #08764f;
    background: #ffffff;
    color: #08764f;
    box-shadow: none;
}

.back-login-btn {
    margin-top: 12px;
    border-color: #cfd9e3;
    color: #064421;
}

.outline-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}
.recovery-card {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(8, 118, 79, 0.18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(255, 251, 235, 0.84));
    box-shadow: 0 14px 32px rgba(6, 78, 59, 0.08);
}

.recovery-card label {
    display: block;
    margin-bottom: 8px;
    color: #064e3b;
    font-size: 13px;
    font-weight: 800;
}

.recovery-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.recovery-btn {
    margin-top: 12px;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.18); opacity: 0.85; }
}

@keyframes waveMove {
    0% { transform: translateX(-25%) translateY(0); }
    100% { transform: translateX(25%) translateY(-8%); }
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-24px) scale(1.35); opacity: 1; }
}

@keyframes sceneFloat {
    0%, 100% { transform: rotateX(0deg) rotateY(-7deg) translate3d(0, 0, 0); }
    50% { transform: rotateX(4deg) rotateY(8deg) translate3d(-8px, -18px, 36px); }
}

@keyframes orbitSpin {
    from { transform: rotateX(65deg) rotateZ(-22deg); }
    to { transform: rotateX(65deg) rotateZ(338deg); }
}

@keyframes orbitSpinReverse {
    from { transform: rotateX(72deg) rotateY(34deg) rotateZ(0deg); }
    to { transform: rotateX(72deg) rotateY(34deg) rotateZ(-360deg); }
}

@keyframes cardPulse {
    0%, 100% { filter: drop-shadow(0 12px 18px rgba(255, 212, 52, 0.15)); }
    50% { filter: drop-shadow(0 20px 26px rgba(255, 212, 52, 0.35)); }
}

@keyframes topRibbonDrift {
    0%, 100% { transform: rotate(-19deg) rotateY(34deg) translate3d(0, 0, 0); opacity: 0.64; }
    50% { transform: rotate(-15deg) rotateY(46deg) translate3d(-18px, 18px, 48px); opacity: 0.95; }
}

@keyframes glassOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 28px) scale(1); opacity: 0.62; }
    50% { transform: translate3d(-18px, -16px, 68px) scale(1.12); opacity: 0.92; }
}

@keyframes glassSweep {
    0%, 100% { transform: translateX(-22%) rotate(-14deg); opacity: 0.42; }
    50% { transform: translateX(22%) rotate(-14deg); opacity: 0.78; }
}

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

    .auth-page {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        overflow: visible;
    }

    .auth-left,
    .auth-right {
        width: 100%;
        border-radius: 18px;
    }

    .auth-left {
        min-height: 420px;
    }

    .auth-3d-scene {
        opacity: 0.55;
        inset: auto 4% 10% auto;
        width: min(180px, 34vw);
    }

    .auth-top-motion {
        width: min(300px, 55vw);
        height: 180px;
        opacity: 0.55;
    }

    .auth-right {
        padding: 36px 28px;
    }

    .registration-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 760px) and (min-width: 1101px) {
    .auth-left,
    .auth-right {
        padding: 32px 42px;
    }

    .left-content h2 {
        font-size: 44px;
    }

    .left-content .statement {
        font-size: 15px;
    }

    .feature-row {
        gap: 10px;
    }

    .input-group input,
    .input-group select {
        height: 46px;
    }

    .form-grid {
        gap: 10px;
    }

    .auth-3d-scene {
        width: min(190px, 32%);
        bottom: 18%;
    }

    .auth-top-motion {
        width: min(340px, 50%);
        height: 200px;
        top: 2%;
    }
}

.auth-page-single {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.auth-single-panel {
    width: min(680px, calc(100% - 32px));
    min-height: auto;
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(4, 57, 62, 0.18);
}

.auth-single-form {
    margin: 0 auto;
}

/* PLANORA LUMINOUS AUTH - one signature lamp interaction, calm supporting motion */
:root {
    --auth-font-display: "Montserrat", "Avenir Next", sans-serif;
    --auth-font-body: "Lato", "Trebuchet MS", sans-serif;
    --auth-font-ui: "Inter", "Segoe UI", sans-serif;
    --auth-display-large: clamp(3.25rem, 6vw, 4.5rem);
    --auth-display-medium: clamp(2.875rem, 5vw, 3.75rem);
    --auth-display-small: clamp(2.25rem, 4vw, 3rem);
    --auth-heading-large: clamp(1.875rem, 3vw, 2.25rem);
    --auth-ease: cubic-bezier(.16, 1, .3, 1);
    --auth-canvas: #edf4e9;
    --auth-paper: #fbfdf8;
    --auth-paper-raised: #f4f8f1;
    --auth-ink: #13271d;
    --auth-muted: #61736a;
    --auth-line: rgba(32, 77, 52, .15);
    --auth-field: #f8fbf6;
    --auth-field-line: #cad9cd;
    --auth-panel: #0d281b;
    --auth-panel-deep: #071b12;
    --auth-panel-ink: #eef6ed;
    --auth-panel-muted: #b9c9bd;
    --auth-gold: #f4c84a;
    --auth-gold-soft: rgba(244, 200, 74, .24);
    --auth-green: #14754a;
    --auth-green-deep: #0b5034;
    --auth-focus: #0b5034;
    --auth-shadow: 0 26px 70px rgba(30, 73, 50, .16);
    --auth-shadow-soft: 0 12px 32px rgba(30, 73, 50, .10);
}

html[data-planora-theme="dark"] {
    color-scheme: dark;
    --auth-canvas: #08150e;
    --auth-paper: #122219;
    --auth-paper-raised: #192d21;
    --auth-ink: #edf5ec;
    --auth-muted: #a8b8ad;
    --auth-green: #76d69e;
    --auth-focus: #f4c84a;
    --auth-line: rgba(190, 217, 195, .15);
    --auth-field: #172b20;
    --auth-field-line: #355041;
    --auth-shadow: 0 28px 78px rgba(2, 12, 7, .42);
    --auth-shadow-soft: 0 12px 34px rgba(2, 12, 7, .30);
}

/* Final accessibility guardrails for the dark/light auth shell. Keep links
   readable on the dark paper surface and give every small control a real
   touch target and keyboard-visible focus treatment. */
.auth-page .auth-field-label { color: #53675d; }
html[data-planora-theme="dark"] .auth-page .auth-field-label { color: #b9c9bd; }
.auth-page .form-top a,
.auth-page .form-options a,
.auth-page .back-login a,
.auth-page .inline-link,
.auth-page .auth-legal-links a,
.auth-page .legal-acceptance a,
.auth-page .legal-acceptance a:visited,
.auth-page .google-consent a,
.auth-page .google-consent a:visited { color: var(--auth-green); }
.auth-page .form-top a,
.auth-page .form-options a,
.auth-page .back-login a,
.auth-page .inline-link,
.auth-page .auth-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.auth-page .auth-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 8px;
}
.auth-page .legal-acceptance a,
.auth-page .google-consent a {
    display: inline-block;
    min-height: 44px;
    padding-block: 12px;
    margin-block: -12px;
    vertical-align: middle;
    text-underline-offset: 2px;
}
.auth-page .password-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    right: 8px;
}
.auth-page .password-toggle:focus-visible,
.auth-page a:focus-visible,
.auth-page button:not(.auth-lamp-switch):focus-visible {
    outline: 3px solid var(--auth-focus);
    outline-offset: 3px;
}
.auth-page .auth-lamp-switch:focus-visible {
    outline: 3px solid var(--auth-focus);
    outline-offset: 4px;
}

html,
body {
    width: 100%;
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--auth-ink);
    background: var(--auth-canvas);
    font-family: var(--auth-font-body);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

button, input, select, textarea, .form-top, .feature-row {
    font-family: var(--auth-font-ui);
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    width: 100%;
    min-height: 100dvh;
    height: auto;
    padding: clamp(12px, 2vw, 24px);
    background:
        radial-gradient(900px 640px at 8% 5%, var(--auth-gold-soft), transparent 62%),
        linear-gradient(145deg, var(--auth-canvas), color-mix(in srgb, var(--auth-canvas) 86%, #b8d2bb));
}

.auth-left,
.auth-right {
    width: 100%;
    min-height: calc(100dvh - clamp(24px, 4vw, 48px));
    height: auto;
}

.auth-left {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(230px, 1fr) auto auto;
    gap: clamp(18px, 3vh, 34px);
    padding: clamp(30px, 5vw, 68px);
    overflow: hidden;
    color: var(--auth-panel-ink);
    border: 1px solid rgba(218, 235, 218, .12);
    border-radius: 34px 0 0 34px;
    background:
        radial-gradient(540px 390px at 72% 37%, rgba(244, 200, 74, .14), transparent 68%),
        linear-gradient(150deg, #133d28 0%, var(--auth-panel) 52%, var(--auth-panel-deep) 100%);
    box-shadow: var(--auth-shadow);
    isolation: isolate;
}

.auth-left::before {
    width: 620px;
    height: 620px;
    right: -250px;
    top: -210px;
    background: radial-gradient(circle, rgba(244, 200, 74, .16), transparent 68%);
    filter: none;
    opacity: .85;
    animation: authAmbient 8s var(--auth-ease) infinite alternate;
}

.auth-left::after {
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(216, 235, 219, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 235, 219, .08) 1px, transparent 1px);
    background-size: 42px 42px;
    transform: none;
    animation: none;
    mask-image: linear-gradient(to bottom right, rgba(8, 21, 14, .72), transparent 72%);
}

.floating-dot,
.auth-top-motion,
.auth-3d-scene {
    display: none;
}

.brand, .left-content, .feature-row, .auth-lamp-switch {
    position: relative;
    z-index: 2;
}

/* Keep the PLANORA identity as the first visual anchor on wide auth screens.
   The lamp is a secondary theme control and should sit below the brand, not
   push the logo into the middle of the panel. */
@media (min-width: 961px) {
    .brand { grid-row: 1; }
    .auth-lamp-switch { grid-row: 2; }
}

.brand-logo { gap: 16px; }

.logo-box {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(244, 200, 74, .52);
    border-radius: 19px 19px 14px 14px;
    background: rgba(237, 245, 236, .08);
    box-shadow: inset 0 1px rgba(246, 239, 200, .18), 0 10px 24px rgba(3, 19, 11, .20);
}

.logo-box.has-logo { background: rgba(237, 245, 236, .08); }

.brand h1 {
    color: var(--auth-panel-ink);
    font-family: var(--auth-font-display);
    font-size: clamp(1.65rem, 2.3vw, 2.125rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

.brand p {
    color: var(--auth-panel-muted);
    font-family: var(--auth-font-body);
    font-size: .9rem;
}

.auth-lamp-switch {
    --planora-pull-y: 0px;
    --planora-pull-scale: 1;
    display: grid;
    grid-template-columns: minmax(150px, 240px) minmax(150px, 220px);
    align-items: end;
    justify-self: end;
    width: min(100%, 500px);
    min-height: 230px;
    padding: 12px 10px 6px;
    border: 0;
    color: var(--auth-panel-ink);
    background: transparent;
    text-align: left;
    cursor: grab;
    touch-action: none;
}

.auth-lamp-switch:active,
.auth-lamp-switch.is-pulling { cursor: grabbing; }

.auth-lamp-aura {
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 280px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(244, 200, 74, .42), rgba(244, 200, 74, .12) 45%, transparent 72%);
    opacity: .16;
    transform: scale(.82);
    pointer-events: none;
}

.auth-lamp-object {
    position: relative;
    display: grid;
    grid-template-rows: 82px 86px 18px;
    justify-items: center;
    align-items: start;
    width: 190px;
    min-height: 190px;
    transform-origin: 50% 82%;
}

.auth-lamp-shade {
    position: relative;
    z-index: 3;
    width: 132px;
    height: 82px;
    border: 1px solid rgba(245, 232, 174, .22);
    border-radius: 52px 52px 18px 18px;
    background: linear-gradient(155deg, #6d796f, #33473a 74%);
    box-shadow: inset 0 1px rgba(237, 245, 236, .16), 0 16px 32px rgba(2, 15, 8, .24);
    transform: perspective(180px) rotateX(-5deg);
}

.auth-lamp-shade::before {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: -6px;
    height: 12px;
    border-radius: 50%;
    background: #243a2c;
}

.auth-lamp-shade::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: 34px;
    height: 5px;
    border-radius: 999px;
    background: rgba(238, 246, 237, .28);
    transform: translateX(-50%);
}

.auth-lamp-stem {
    z-index: 2;
    width: 8px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8d9a8f, #d5ded4 48%, #5d7162);
    box-shadow: 0 7px 16px rgba(3, 19, 11, .22);
}

.auth-lamp-base {
    z-index: 3;
    width: 94px;
    height: 17px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d6dfd5, #7e9182);
    box-shadow: 0 12px 22px rgba(2, 15, 8, .28);
}

.auth-lamp-cord {
    position: absolute;
    z-index: 5;
    top: 52px;
    left: 142px;
    display: grid;
    justify-items: center;
    width: 34px;
    min-height: 92px;
    pointer-events: none;
}

.auth-lamp-cord-line {
    width: 2px;
    height: 62px;
    border-radius: 999px;
    background: #e5dba9;
    box-shadow: 0 3px 10px rgba(2, 15, 8, .28);
    transform: scaleY(var(--planora-pull-scale));
    transform-origin: top;
}

.auth-lamp-cord-grip {
    width: 13px;
    height: 24px;
    margin-top: -1px;
    border: 1px solid rgba(246, 239, 200, .42);
    border-radius: 999px;
    background: var(--auth-gold);
    box-shadow: 0 8px 18px rgba(244, 200, 74, .30);
    transform: translateY(var(--planora-pull-y));
}

.auth-lamp-status {
    display: grid;
    gap: 5px;
    align-self: center;
    max-width: 22ch;
    padding: 16px 0 22px;
}

.auth-lamp-status strong {
    color: #f8f2d0;
    font-family: var(--auth-font-display);
    font-size: 1.05rem;
    letter-spacing: -.025em;
}

.auth-lamp-status small {
    color: var(--auth-panel-muted);
    font-family: var(--auth-font-body);
    font-size: .82rem;
    line-height: 1.5;
}

.auth-lamp-switch.is-lit .auth-lamp-aura,
.auth-lamp-switch.is-switching .auth-lamp-aura {
    opacity: 1;
    transform: scale(1);
}

.auth-lamp-switch.is-lit .auth-lamp-shade {
    border-color: rgba(255, 232, 146, .62);
    background: linear-gradient(155deg, #ffe7a0, #e9b936 78%);
    box-shadow: inset 0 1px rgba(255, 250, 218, .72), 0 18px 34px rgba(244, 200, 74, .24);
}

.auth-lamp-switch.is-lit .auth-lamp-shade::before { background: #f8d96f; }
.auth-lamp-switch.is-lit .auth-lamp-shade::after { background: rgba(61, 65, 45, .48); }
.auth-lamp-switch.is-switching .auth-lamp-object { animation: authLampPull 520ms var(--auth-ease); }

.auth-lamp-switch:focus-visible {
    outline: 3px solid rgba(244, 200, 74, .78);
    outline-offset: 4px;
    border-radius: 24px;
}

.left-content {
    max-width: 620px;
    align-self: end;
}

.left-content .eyebrow {
    margin-bottom: 14px;
    color: #f5d774;
    font-size: .75rem;
    letter-spacing: .18em;
}

.left-content h2 {
    max-width: 12ch;
    margin-bottom: 18px;
    color: var(--auth-panel-ink);
    font-family: var(--auth-font-display);
    font-size: var(--auth-display-small);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.05em;
}

.left-content h2 span { color: #f3ce58; }

.left-content .statement {
    max-width: 58ch;
    color: var(--auth-panel-muted);
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.7;
    opacity: 1;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
    padding-top: 22px;
    border-top: 1px solid rgba(217, 234, 219, .13);
}

.feature { gap: 10px; }

.feature-icon {
    min-width: 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(244, 200, 74, .32);
    border-radius: 13px;
    color: #f4d468;
    background: rgba(244, 200, 74, .08);
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.feature strong { color: #eef6ed; font-size: .78rem; font-weight: 700; }
.feature span { color: var(--auth-panel-muted); font-family: var(--auth-font-body); font-size: .74rem; line-height: 1.45; opacity: 1; }

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(34px, 6vw, 88px);
    border: 1px solid var(--auth-line);
    border-left: 0;
    border-radius: 0 34px 34px 0;
    color: var(--auth-ink);
    background: linear-gradient(135deg, color-mix(in srgb, var(--auth-paper) 94%, transparent), var(--auth-paper));
    box-shadow: var(--auth-shadow);
}

.form-wrap.login-wrap {
    max-width: 560px;
    animation: authFormReveal 620ms var(--auth-ease) both;
}

.form-top { margin-bottom: clamp(26px, 5vh, 48px); }
.form-top .label { color: var(--auth-green); font-size: .72rem; letter-spacing: .18em; }
.form-top a, .form-options a, .back-login a, .inline-link { color: var(--auth-green); }

.form-wrap h2,
.register-wrap h2 {
    margin-bottom: 12px;
    color: var(--auth-ink);
    font-family: var(--auth-font-display);
    font-size: var(--auth-heading-large);
    line-height: 1.12;
    letter-spacing: -.045em;
}

.form-subtitle {
    max-width: 58ch;
    margin-bottom: 30px;
    color: var(--auth-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.form-grid { gap: 16px; }
.input-icon, .password-toggle { color: var(--auth-muted); }

.input-group input,
.input-group select,
.login-wrap .input-group input,
.login-wrap .input-group select {
    height: 58px;
    border: 1px solid var(--auth-field-line);
    border-radius: 16px;
    color: var(--auth-ink);
    background: var(--auth-field);
    box-shadow: inset 0 1px rgba(37, 77, 51, .04);
    font-family: var(--auth-font-ui);
    font-size: .94rem;
    transition: border-color 180ms var(--auth-ease), box-shadow 180ms var(--auth-ease), transform 180ms var(--auth-ease);
}

.input-group input::placeholder { color: color-mix(in srgb, var(--auth-muted) 78%, transparent); }
.input-group input:focus, .input-group select:focus { border-color: var(--auth-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-green) 18%, transparent), var(--auth-shadow-soft); }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--auth-green); background: color-mix(in srgb, var(--auth-green) 12%, transparent); }
.form-options, .trusted-device-note { color: var(--auth-muted); }

.btn-create,
.google-btn,
.login-wrap .btn-create,
.login-wrap .google-btn {
    min-height: 56px;
    height: auto;
    border-radius: 16px;
    font-family: var(--auth-font-ui);
    transition: transform 180ms var(--auth-ease), box-shadow 180ms var(--auth-ease), border-color 180ms var(--auth-ease);
}

.btn-create {
    color: #f5fbf5;
    background: linear-gradient(135deg, var(--auth-green), var(--auth-green-deep));
    box-shadow: 0 12px 26px rgba(11, 80, 52, .24), inset 0 1px rgba(232, 245, 232, .18);
}

.google-btn, .outline-btn { color: var(--auth-ink); border-color: var(--auth-line); background: var(--auth-paper-raised); }
.btn-create:hover, .google-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(24, 75, 48, .17); }
.divider, .auth-legal-links { color: var(--auth-muted); }
.divider span { background: var(--auth-line); }

@keyframes authAmbient {
    from { opacity: .55; transform: scale(.94) translate3d(0, 0, 0); }
    to { opacity: .9; transform: scale(1.04) translate3d(-12px, 12px, 0); }
}

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

@keyframes authLampPull {
    0%, 100% { transform: rotate(0); }
    45% { transform: rotate(-2.5deg); }
    72% { transform: rotate(1.5deg); }
}

@media (max-width: 960px) {
    .auth-page { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .auth-left, .auth-right { min-height: auto; border-radius: 28px; }
    .auth-left { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); grid-template-rows: auto 1fr auto; min-height: 620px; }
    .brand { grid-column: 1 / -1; }
    .auth-lamp-switch { grid-column: 2; grid-row: 2; width: 100%; grid-template-columns: 180px; align-self: center; }
    .auth-lamp-status { display: none; }
    .left-content { grid-column: 1; grid-row: 2; align-self: center; }
    .feature-row { grid-column: 1 / -1; }
    .auth-right { margin-top: 12px; padding: clamp(36px, 8vw, 70px); border-left: 1px solid var(--auth-line); }
}

@media (max-width: 680px) {
    :root { --auth-display-small: clamp(2.25rem, 11vw, 3rem); --auth-heading-large: clamp(1.9rem, 9vw, 2.25rem); }
    .auth-page { padding: 8px; }
    .auth-left { grid-template-columns: minmax(0, 1fr) 112px; grid-template-rows: 116px; gap: 10px; min-height: 132px; padding: 8px 14px 8px 18px; align-items: center; border-radius: 24px; }
    .brand { grid-column: 1; grid-row: 1; }
    .brand-logo { gap: 10px; }
    .logo-box { width: 48px; height: 48px; border-radius: 12px; }
    .brand h1 { font-size: 1.5rem; }
    .brand p { font-size: .78rem; }
    .auth-lamp-switch { grid-column: 2; grid-row: 1; justify-self: center; width: 190px; min-height: 166px; grid-template-columns: 180px; transform: scale(.58); transform-origin: center; }
    .auth-lamp-aura { left: -25px; }
    .left-content,
    .feature-row { display: none; }
    .auth-right { margin-top: 8px; padding: 30px 22px; border-radius: 24px; }
    .form-top { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 30px; }
    .form-options { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-left::before,
    .form-wrap.login-wrap,
    .auth-lamp-switch,
    .auth-lamp-switch * {
        animation: none !important;
        transition: none !important;
  }
}

.auth-lamp-switch.is-releasing .auth-lamp-cord-line,
.auth-lamp-switch.is-releasing .auth-lamp-cord-grip {
    transition: transform 420ms cubic-bezier(.16, 1, .3, 1);
}

.auth-lamp-switch.is-switching .auth-lamp-object {
    animation: none;
}

.auth-lamp-switch.is-switching .auth-lamp-shade {
    animation: authLampSettle 460ms cubic-bezier(.16, 1, .3, 1);
}

.auth-lamp-switch:focus-visible {
    outline: none;
}

.auth-lamp-switch:focus-visible .auth-lamp-cord-grip {
    box-shadow: 0 0 0 4px rgba(244, 200, 74, .28), 0 0 0 7px rgba(255, 238, 166, .78), 0 10px 22px rgba(244, 200, 74, .38);
}

.auth-lamp-switch:focus-visible .auth-lamp-shade {
    filter: drop-shadow(0 0 12px rgba(244, 200, 74, .36));
}

html.planora-theme-transitioning .auth-page,
html.planora-theme-transitioning .auth-right,
html.planora-theme-transitioning .input-group input,
html.planora-theme-transitioning .google-btn {
    transition: color 320ms var(--auth-ease), background-color 320ms var(--auth-ease), border-color 320ms var(--auth-ease), box-shadow 320ms var(--auth-ease);
}

@keyframes authLampSettle {
    0% { transform: translateY(0) rotate(0); }
    34% { transform: translateY(3px) rotate(-1deg); }
    68% { transform: translateY(-1px) rotate(.6deg); }
    100% { transform: translateY(0) rotate(0); }
}

@media (min-width: 681px) and (max-height: 820px) {
    .auth-page { padding: 12px; }
    .auth-left,
    .auth-right { min-height: calc(100dvh - 24px); }
    .auth-left { gap: 14px; padding: 26px 36px; }
    .auth-lamp-switch { min-height: 190px; }
    .auth-right { padding: 24px clamp(42px, 5vw, 64px); }
    .form-top { margin-bottom: 18px; }
    .form-subtitle { margin-bottom: 18px; }
    .form-grid { gap: 13px; }
    .input-group input,
    .input-group select,
    .login-wrap .input-group input,
    .login-wrap .input-group select { height: 54px; }
    .trusted-device-note { margin-top: 10px; }
}

@media (max-width: 680px) {
    .auth-lamp-switch::after {
        content: "PULL";
        position: absolute;
        right: 52px;
        bottom: 7px;
        color: #f7dc7b;
        font-family: var(--auth-font-ui);
        font-size: .62rem;
        font-weight: 800;
        letter-spacing: .16em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-lamp-switch.is-releasing .auth-lamp-cord-line,
    .auth-lamp-switch.is-releasing .auth-lamp-cord-grip,
    html.planora-theme-transitioning .auth-page,
    html.planora-theme-transitioning .auth-right,
    html.planora-theme-transitioning .input-group input,
    html.planora-theme-transitioning .google-btn {
        animation: none !important;
        transition: none !important;
    }
}
