@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --auth-ink: #0f172a;
    --auth-ink-muted: #64748b;
    --auth-ink-soft: #334155;
    --auth-accent: #107c41;
    --auth-accent-hover: #0a703d;
    --auth-accent-soft: #ecfdf3;
    --auth-border: #e2e8f0;
    --auth-danger: #c53030;
    --auth-ok: #136f2d;
    --auth-page-bg: #eef8f1;
    --auth-card-radius: 28px;
    --auth-input-radius: 14px;
    --auth-btn-radius: 14px;
    --auth-card-shadow: 0 28px 60px rgba(15, 118, 67, 0.14), 0 8px 24px rgba(15, 23, 42, 0.06);
    --auth-glow: rgba(16, 124, 65, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.login-body {
    margin: 0;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: var(--auth-ink);
    background: var(--auth-page-bg);
    overflow: hidden;
}

html:has(body.login-body) {
    height: 100%;
    overflow: hidden;
}

.login-page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(0.5px);
    animation: login-blob-drift 18s ease-in-out infinite;
}

.login-blob--one {
    width: 320px;
    height: 320px;
    top: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(167, 243, 208, 0.55) 0%, rgba(167, 243, 208, 0) 72%);
    animation-duration: 22s;
}

.login-blob--two {
    width: 260px;
    height: 260px;
    top: 18%;
    left: 8%;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.28) 0%, rgba(110, 231, 183, 0) 72%);
    animation-duration: 16s;
    animation-delay: -4s;
}

.login-blob--three {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.35) 0%, rgba(134, 239, 172, 0) 70%);
    animation-duration: 20s;
    animation-delay: -8s;
}

.login-leaf {
    position: absolute;
    border-radius: 50% 0 50% 0;
    opacity: 0.35;
    filter: blur(1px);
    animation: login-leaf-sway 12s ease-in-out infinite;
}

.login-leaf--left {
    width: 120px;
    height: 180px;
    left: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(16, 124, 65, 0.25), rgba(16, 124, 65, 0.05));
    transform: rotate(18deg);
    animation-name: login-leaf-sway-left;
    animation-delay: -2s;
}

.login-leaf--right {
    width: 160px;
    height: 220px;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.04));
    transform: rotate(-12deg);
    animation-name: login-leaf-sway-right;
    animation-delay: -5s;
}

.login-back-btn {
    position: fixed;
    top: max(16px, env(safe-area-inset-top, 0px));
    left: max(16px, env(safe-area-inset-left, 0px));
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.login-back-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.login-page {
    position: relative;
    z-index: 1;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px 0;
    overflow: hidden;
}

.login-shell {
    width: min(1640px, calc(100vw - 16px));
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    overflow: hidden;
}

.login-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(460px, 1.08fr);
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100vh - 14px);
    max-height: calc(100vh - 14px);
    background: #ffffff;
    border: 1px solid rgba(16, 124, 65, 0.1);
    border-radius: calc(var(--auth-card-radius) + 4px);
    box-shadow: var(--auth-card-shadow);
    overflow: hidden;
    animation: login-card-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    z-index: 2;
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    height: 100%;
    padding: 28px 36px 16px 40px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(167, 243, 208, 0.38) 0%, rgba(167, 243, 208, 0) 42%),
        radial-gradient(circle at 82% 72%, rgba(187, 247, 208, 0.32) 0%, rgba(187, 247, 208, 0) 45%),
        radial-gradient(circle at 55% 40%, rgba(219, 234, 254, 0.18) 0%, rgba(219, 234, 254, 0) 38%),
        linear-gradient(180deg, #f8fffb 0%, #ffffff 100%);
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
    transform: translateX(-120%);
    animation: login-hero-shine 8s ease-in-out infinite;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    padding: 8px 14px;
    border-radius: 16px;
    background: #050505;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    animation: login-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.login-brand-logo {
    height: clamp(52px, 6vw, 72px);
    width: auto;
    max-width: min(100%, 280px);
    object-fit: contain;
    display: block;
}

.login-hero-copy {
    max-width: 44rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: login-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.login-hero-title {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.login-title-accent {
    background: linear-gradient(120deg, #0f7643 0%, #16a34a 45%, #059669 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: login-title-shimmer 4s ease-in-out infinite;
}

.login-hero-subtitle {
    margin: 0;
    max-width: 30rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--auth-ink-muted);
}

.login-lang-cycle {
    display: block;
    margin-top: 6px;
    min-height: 1.4em;
    position: relative;
    font-weight: 700;
    color: #0f7643;
}

.login-lang-cycle-word {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(8px);
    animation: login-lang-cycle 18s ease-in-out infinite;
}

.login-lang-cycle-word.is-active,
.login-lang-cycle-word:nth-child(1) { animation-delay: 0s; }
.login-lang-cycle-word:nth-child(2) { animation-delay: 3s; }
.login-lang-cycle-word:nth-child(3) { animation-delay: 6s; }
.login-lang-cycle-word:nth-child(4) { animation-delay: 9s; }
.login-lang-cycle-word:nth-child(5) { animation-delay: 12s; }
.login-lang-cycle-word:nth-child(6) { animation-delay: 15s; }

.login-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 42rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.login-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: login-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-feature:nth-child(1) { animation-delay: 0.26s; }
.login-feature:nth-child(2) { animation-delay: 0.34s; }
.login-feature:nth-child(3) { animation-delay: 0.42s; }
.login-feature:nth-child(4) { animation-delay: 0.5s; }

.login-feature:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 124, 65, 0.22);
    box-shadow: 0 8px 20px rgba(15, 118, 67, 0.1);
}

.login-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1;
}

.login-feature--languages .login-feature-icon {
    background: #ecfdf5;
}

.login-feature--practice .login-feature-icon {
    background: #fff7ed;
}

.login-feature--progress .login-feature-icon {
    background: #eff6ff;
}

.login-feature--secure .login-feature-icon {
    background: #f5f3ff;
}

.login-illustration-wrap {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    padding-top: 4px;
    overflow: visible;
    position: relative;
    z-index: 1;
    animation: login-fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.login-lang-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.login-lang-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(16, 124, 65, 0.16);
    animation: login-orbit-spin 24s linear infinite;
}

.login-lang-orbit--one {
    width: min(72%, 420px);
    height: min(72%, 420px);
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
}

.login-lang-orbit--two {
    width: min(58%, 340px);
    height: min(58%, 340px);
    left: 14%;
    top: 50%;
    transform: translateY(-50%);
    animation-direction: reverse;
    animation-duration: 18s;
    border-color: rgba(59, 130, 246, 0.14);
}

.login-lang-bubble {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    animation: login-bubble-float 5s ease-in-out infinite;
}

.login-lang-bubble::after {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: inherit;
    border-right: 1px solid rgba(226, 232, 240, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    transform: rotate(45deg);
}

.login-lang-bubble--hello {
    top: 8%;
    left: 4%;
    color: #166534;
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
    border-color: #bbf7d0;
    animation-delay: 0s;
}

.login-lang-bubble--bonjour {
    top: 2%;
    right: 18%;
    color: #5b21b6;
    background: linear-gradient(180deg, #f5f3ff, #ffffff);
    border-color: #ddd6fe;
    animation-delay: -1.2s;
}

.login-lang-bubble--namaste {
    top: 38%;
    left: 0;
    color: #c2410c;
    background: linear-gradient(180deg, #fff7ed, #ffffff);
    border-color: #fed7aa;
    animation-delay: -2.4s;
}

.login-lang-bubble--nihao {
    bottom: 28%;
    right: 6%;
    color: #1d4ed8;
    background: linear-gradient(180deg, #eff6ff, #ffffff);
    border-color: #bfdbfe;
    animation-delay: -3.6s;
}

.login-lang-bubble--hola {
    bottom: 10%;
    left: 22%;
    color: #b45309;
    background: linear-gradient(180deg, #fffbeb, #ffffff);
    border-color: #fde68a;
    animation-delay: -4.2s;
}

.login-lang-bubble--konnichiwa {
    top: 22%;
    right: 2%;
    color: #be123c;
    background: linear-gradient(180deg, #fff1f2, #ffffff);
    border-color: #fecdd3;
    animation-delay: -1.8s;
}

.login-illustration {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    max-width: min(100%, 720px);
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.1));
    animation: login-illustration-float 6s ease-in-out infinite;
}

.login-form-wrap {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-height: 0;
    height: 100%;
    min-width: 0;
    padding: 34px 40px 34px 28px;
    background:
        linear-gradient(180deg, rgba(248, 255, 251, 0.65) 0%, #ffffff 28%);
    overflow: hidden;
    animation: login-form-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.auth-form-card {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--auth-card-radius);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    padding: 36px 36px 28px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.auth-form-badge {
    width: auto;
    height: auto;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 14px;
    background: #050505;
    color: #0f7643;
    border: 1px solid rgba(16, 124, 65, 0.18);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.auth-form-logo {
    height: 38px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    display: block;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 18px;
}

.auth-form-title {
    margin: 0 0 6px;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.auth-form-subtitle {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--auth-ink-muted);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-btn-radius);
    background: #ffffff;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.google-btn:hover {
    background: #f9fafb;
    border-color: #cbd5e0;
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.google-btn svg {
    flex-shrink: 0;
}

.divider {
    margin: 18px 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e8edf3;
}

.divider span {
    position: relative;
    background: #ffffff;
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.auth-stack {
    display: grid;
    gap: 10px;
}

.auth-label {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--auth-ink-soft);
}

.input-wrap {
    position: relative;
}

.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #16a34a;
    pointer-events: none;
    display: flex;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-input-radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1;
    color: var(--auth-ink);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.input-wrap .auth-input {
    padding-left: 42px;
}

.auth-input:focus {
    outline: none;
    border-color: #86efac;
    box-shadow: 0 0 0 4px rgba(16, 124, 65, 0.12);
    transform: translateY(-1px);
}

.otp-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--auth-ink-muted);
}

.otp-note svg {
    flex: 0 0 16px;
    margin-top: 1px;
    color: #16a34a;
}

.auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    margin-top: 0;
    padding: 0 16px;
    border: 0;
    border-radius: var(--auth-btn-radius);
    background: linear-gradient(180deg, #12924d 0%, #107c41 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(16, 124, 65, 0.28);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.auth-submit-btn:hover {
    background: linear-gradient(180deg, #0f8445 0%, var(--auth-accent-hover) 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 124, 65, 0.32);
    transform: translateY(-1px);
}

.privacy-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 500;
}

.privacy-banner svg {
    flex-shrink: 0;
    color: #16a34a;
}

.auth-signup-footer {
    margin: 0;
    flex: 0 0 auto;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--auth-ink-muted);
}

.auth-signup-footer a {
    color: var(--auth-accent);
    font-weight: 700;
    text-decoration: none;
}

.auth-signup-footer a:hover {
    color: var(--auth-accent-hover);
    text-decoration: underline;
}

.notice {
    margin-bottom: 14px;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.92rem;
}

.notice.error {
    background: #fff5f5;
    color: var(--auth-danger);
    border: 1px solid #fed7d7;
}

.notice.ok {
    background: #f0fdf4;
    color: var(--auth-ok);
    border: 1px solid #c6f6d5;
}

.hidden {
    display: none !important;
}

@keyframes login-card-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes login-form-enter {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes login-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-blob-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(18px, -12px) scale(1.04); }
    66% { transform: translate(-10px, 16px) scale(0.98); }
}

@keyframes login-leaf-sway {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes login-leaf-sway-left {
    0%, 100% { transform: rotate(18deg) translateY(0); }
    50% { transform: rotate(22deg) translateY(-8px); }
}

@keyframes login-leaf-sway-right {
    0%, 100% { transform: rotate(-12deg) translateY(0); }
    50% { transform: rotate(-8deg) translateY(-8px); }
}

@keyframes login-hero-shine {
    0%, 72% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes login-brand-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(16, 124, 65, 0.12); }
    50% { transform: scale(1.05); box-shadow: 0 10px 26px rgba(16, 124, 65, 0.18); }
}

@keyframes login-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes login-title-shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes login-lang-cycle {
    0%, 12% {
        opacity: 0;
        transform: translateY(10px);
    }
    16%, 28% {
        opacity: 1;
        transform: translateY(0);
    }
    32%, 100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes login-bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes login-orbit-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes login-illustration-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .login-lang-cycle-word:nth-child(1) {
        opacity: 1;
        transform: none;
        position: static;
    }

    .login-lang-cycle-word:not(:nth-child(1)) {
        display: none;
    }
}

@media (max-width: 991.98px) {
    html:has(body.login-body),
    body.login-body {
        height: auto;
        min-height: 100dvh;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .login-page {
        height: auto;
        min-height: 100dvh;
        max-height: none;
        align-items: flex-start;
        padding: max(10px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
        overflow: visible;
    }

    .login-shell {
        width: min(100%, calc(100vw - 24px));
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    .login-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: 0;
        max-height: none;
        border-radius: 22px;
    }

    .login-form-wrap {
        height: auto;
        min-height: 0;
        padding: 8px 12px 12px;
        overflow: visible;
    }

    .auth-form-card {
        height: auto;
        max-height: none;
        justify-content: flex-start;
        padding: 22px 18px 18px;
        overflow: visible;
    }

    .login-hero {
        height: auto;
        min-height: 0;
        padding: 16px 16px 10px;
        gap: 10px;
        overflow: visible;
    }

    .login-brand {
        padding: 6px 12px;
        border-radius: 14px;
    }

    .login-brand-logo {
        height: clamp(40px, 11vw, 52px);
        max-width: min(100%, 220px);
    }

    .login-hero-title {
        font-size: clamp(1.25rem, 5vw, 1.55rem);
    }

    .login-hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .login-features {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .login-feature {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .login-illustration-wrap {
        flex: 0 0 auto;
        min-height: 0;
        max-height: min(34vw, 160px);
        margin-top: 4px;
        justify-content: center;
    }

    .login-illustration {
        max-width: min(100%, 280px);
        max-height: min(34vw, 160px);
        margin: 0 auto;
    }

    .login-lang-bubble,
    .login-lang-orbit {
        display: none;
    }

    .login-blob--three {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 767.98px) {
    .login-page {
        padding: max(8px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom));
    }

    .login-card {
        border-radius: 18px;
    }

    .login-form-wrap {
        padding: 8px 8px 6px;
    }

    .auth-form-card {
        padding: 20px 16px 16px;
        border-radius: 18px;
    }

    .auth-form-title {
        font-size: 1.15rem;
    }

    .auth-form-subtitle {
        font-size: 0.86rem;
    }

    .google-btn,
    .auth-input,
    .auth-submit-btn {
        min-height: 48px;
        font-size: 1rem;
    }

    .login-hero {
        padding: 12px 14px 14px;
    }

    .login-features {
        grid-template-columns: 1fr;
    }

    .login-illustration-wrap {
        max-height: min(40vw, 140px);
    }

    .login-illustration {
        max-height: min(40vw, 140px);
    }
}

@media (max-width: 479.98px) {
    .login-shell {
        width: 100%;
    }

    .login-page {
        padding: max(6px, env(safe-area-inset-top)) 8px max(12px, env(safe-area-inset-bottom));
    }

    .login-card {
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(15, 118, 67, 0.12);
    }

    .login-form-wrap {
        padding: 6px 6px 4px;
    }

    .auth-form-card {
        padding: 18px 14px 14px;
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .auth-form-badge {
        padding: 6px 10px;
        margin-bottom: 10px;
    }

    .auth-form-logo {
        height: 32px;
        max-width: 150px;
    }

    .auth-form-header {
        margin-bottom: 14px;
    }

    .auth-form-title {
        font-size: 1.08rem;
    }

    .divider {
        margin: 14px 0;
    }

    .privacy-banner {
        margin-top: 10px;
        padding: 9px 10px;
        font-size: 0.78rem;
    }

    .login-hero-copy {
        text-align: center;
    }

    .login-brand {
        align-self: center;
    }

    .login-hero-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .login-hero-subtitle {
        font-size: 0.82rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .login-lang-cycle {
        text-align: center;
    }

    .login-lang-cycle-word {
        left: 50%;
        transform: translateX(-50%) translateY(8px);
    }

    .login-features {
        display: none;
    }

    .login-illustration-wrap {
        display: none;
    }

    .login-leaf {
        display: none;
    }
}

@media (max-width: 991.98px) and (max-height: 700px) {
    .login-features {
        display: none;
    }

    .login-illustration-wrap {
        max-height: 110px;
    }

    .login-illustration {
        max-height: 110px;
    }

    .auth-form-card {
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .auth-form-header {
        margin-bottom: 12px;
    }

    .divider {
        margin: 12px 0;
    }
}

@media (max-width: 991.98px) {
    @keyframes login-lang-cycle {
        0%, 12% {
            opacity: 0;
            transform: translateX(-50%) translateY(10px);
        }
        16%, 28% {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        32%, 100% {
            opacity: 0;
            transform: translateX(-50%) translateY(-8px);
        }
    }
}

@media (max-height: 760px) and (min-width: 992px) {
    .login-hero-title {
        font-size: 1.25rem;
    }

    .login-hero-subtitle {
        font-size: 0.8rem;
    }

    .login-illustration-wrap {
        min-height: 0;
        max-height: none;
    }

    .auth-form-badge {
        padding: 6px 10px;
        margin-bottom: 8px;
    }

    .auth-form-logo {
        height: 30px;
        max-width: 140px;
    }

    .auth-form-title {
        font-size: 1.05rem;
    }

    .privacy-banner {
        margin-top: 8px;
        padding: 8px 10px;
        font-size: 0.75rem;
    }
}
