* {
    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: 'Poppins', 'Inter', Arial, 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;
}

.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-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;
}

.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;
}
