:root {
    --auth-ink: #0f172a;
    --auth-ink-muted: #64748b;
    --auth-ink-soft: #334155;
    --auth-accent: #16a34a;
    --auth-accent-hover: #15803d;
    --auth-accent-soft: #dcfce7;
    --auth-border: #e2e8f0;
    --auth-danger: #c53030;
    --auth-ok: #136f2d;
    --auth-page-bg: #f0fdf4;
    --auth-card-radius: 28px;
    --auth-input-radius: 14px;
    --auth-btn-radius: 14px;
    --auth-card-shadow: 0 28px 60px rgba(22, 163, 74, 0.14), 0 8px 24px rgba(15, 23, 42, 0.06);
    --auth-glow: rgba(22, 163, 74, 0.2);
}

*,
*::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;
    overflow-x: hidden;
}

html:has(body.login-body) {
    height: 100%;
    overflow-x: 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-glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(40px);
    animation: login-blob-drift 20s ease-in-out infinite;
}

.login-glow--left {
    width: 280px;
    height: 280px;
    left: 6%;
    bottom: 12%;
    background: rgba(22, 163, 74, 0.18);
}

.login-glow--right {
    width: 220px;
    height: 220px;
    right: 10%;
    top: 8%;
    background: rgba(134, 239, 172, 0.28);
    animation-delay: -6s;
}

.login-shell {
    width: min(1640px, calc(100vw - 16px));
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

.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-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 - 56px);
    max-height: calc(100vh - 56px);
    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 20px 40px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(220, 252, 231, 0.65) 0%, rgba(220, 252, 231, 0) 42%),
        radial-gradient(circle at 82% 72%, rgba(187, 247, 208, 0.45) 0%, rgba(187, 247, 208, 0) 45%),
        linear-gradient(180deg, #f8fffb 0%, #ffffff 72%, #f0fdf4 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-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    animation: login-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.login-brand-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.login-mobile-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid rgba(22, 163, 74, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #16a34a;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
}

.login-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(22, 163, 74, 0.15);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.12);
    overflow: hidden;
    flex-shrink: 0;
}

.login-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.login-brand-globe {
    display: none;
    width: 40px;
    height: 40px;
}

.login-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.1;
}

.login-brand-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--auth-ink-muted);
    line-height: 1.3;
}

.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, #15803d 0%, #16a34a 45%, #22c55e 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-hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-top: auto;
    animation: login-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.login-hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 12px 8px;
    border-radius: 18px;
    color: #1e293b;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(220, 252, 231, 0.95);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.08);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-width: 0;
}

.login-hero-feature-title {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.login-hero-feature-desc {
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--auth-ink-muted);
}

.login-hero-feature:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 163, 74, 0.28);
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.14);
}

.login-hero-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    font-size: 1rem;
    background: var(--auth-accent-soft);
}

.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(22, 163, 74, 0.14);
}

.login-lang-orbit--dots {
    width: min(86%, 500px);
    height: min(86%, 500px);
    left: 4%;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background:
        radial-gradient(circle, rgba(22, 163, 74, 0.35) 2px, transparent 2px) 0 0 / 28px 28px;
    opacity: 0.35;
    animation: login-orbit-spin 30s linear infinite;
}

.login-deco {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.login-deco--plane {
    top: 14%;
    right: 10%;
    color: #16a34a;
    opacity: 0.75;
    animation: login-plane-fly 7s ease-in-out infinite;
}

.login-deco--sparkle {
    color: #22c55e;
    font-size: 1.1rem;
    opacity: 0.7;
    animation: login-sparkle 3s ease-in-out infinite;
}

.login-deco--sparkle-one {
    top: 6%;
    left: 42%;
    animation-delay: 0s;
}

.login-deco--sparkle-two {
    bottom: 18%;
    right: 4%;
    font-size: 0.9rem;
    animation-delay: -1s;
}

.login-deco--sparkle-three {
    top: 30%;
    left: 8%;
    font-size: 0.85rem;
    animation-delay: -2s;
}

.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: 6%;
    left: 2%;
    color: #166534;
    background: linear-gradient(180deg, #dcfce7, #ffffff);
    border-color: #bbf7d0;
    animation-delay: 0s;
}

.login-lang-bubble--namaste {
    top: 2%;
    right: 22%;
    color: #c2410c;
    background: linear-gradient(180deg, #fff7ed, #ffffff);
    border-color: #fed7aa;
    animation-delay: -0.8s;
}

.login-lang-bubble--bonjour {
    top: 18%;
    right: 4%;
    color: #5b21b6;
    background: linear-gradient(180deg, #f5f3ff, #ffffff);
    border-color: #ddd6fe;
    animation-delay: -1.6s;
}

.login-lang-bubble--hola {
    bottom: 12%;
    left: 18%;
    color: #b45309;
    background: linear-gradient(180deg, #fffbeb, #ffffff);
    border-color: #fde68a;
    animation-delay: -2.4s;
}

.login-lang-bubble--konnichiwa {
    top: 28%;
    left: 0;
    color: #be123c;
    background: linear-gradient(180deg, #fff1f2, #ffffff);
    border-color: #fecdd3;
    animation-delay: -3.2s;
}

.login-lang-bubble--nihao {
    bottom: 24%;
    right: 4%;
    color: #1d4ed8;
    background: linear-gradient(180deg, #eff6ff, #ffffff);
    border-color: #bfdbfe;
    animation-delay: -4s;
}

.login-lang-bubble--kannada {
    bottom: 4%;
    right: 28%;
    color: #0f766e;
    background: linear-gradient(180deg, #f0fdfa, #ffffff);
    border-color: #99f6e4;
    animation-delay: -4.8s;
}

.login-lang-bubble--arabic {
    top: 42%;
    right: 0;
    color: #047857;
    background: linear-gradient(180deg, #ecfdf5, #ffffff);
    border-color: #a7f3d0;
    animation-delay: -5.6s;
}

.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(240, 253, 244, 0.75) 0%, #ffffff 35%);
    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.82);
    border: 1px solid rgba(220, 252, 231, 0.95);
    border-radius: var(--auth-card-radius);
    box-shadow:
        0 20px 44px rgba(22, 163, 74, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    padding: 36px 36px 28px;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.auth-form-badge {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    border: 2px solid rgba(220, 252, 231, 0.95);
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.16);
    overflow: hidden;
}

.auth-form-logo {
    width: 46px;
    height: 46px;
    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: 52px;
    padding: 0 16px;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-btn-radius);
    background: #ffffff;
    color: #1f2937;
    font-size: 1rem;
    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);
}

.auth-form-card .google-btn + .google-btn {
    margin-top: 10px;
}

.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: 52px;
    margin-top: 4px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--auth-btn-radius);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.3);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #166534 100%);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(22, 163, 74, 0.36);
    transform: translateY(-1px);
}

.login-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(220, 252, 231, 0.92);
    border: 1px solid rgba(22, 163, 74, 0.12);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.08);
    min-width: 0;
}

.login-footer-avatars {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.login-footer-badge-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.login-footer-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.login-footer-copy strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: #14532d;
    line-height: 1.2;
}

.login-footer-copy span {
    font-size: 0.68rem;
    font-weight: 500;
    color: #166534;
    line-height: 1.25;
}

.login-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -6px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.login-avatar:first-child {
    margin-left: 0;
}

.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-plane-fly {
    0%, 100% { transform: translate(0, 0) rotate(-8deg); opacity: 0.55; }
    50% { transform: translate(-18px, -14px) rotate(4deg); opacity: 0.95; }
}

@keyframes login-sparkle {
    0%, 100% { transform: scale(1); opacity: 0.45; }
    50% { transform: scale(1.25); opacity: 1; }
}

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

@media (max-width: 991.98px) {
    html:has(body.login-body) {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    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;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        background: #f3fbf6;
    }

    .login-blob--one,
    .login-blob--two,
    .login-glow--left,
    .login-glow--right {
        opacity: 0.4;
    }

    .login-page {
        height: auto;
        min-height: 100dvh;
        max-height: none;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        padding: max(12px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: visible;
    }

    .login-page,
    .login-shell,
    .login-card,
    .login-hero,
    .login-illustration-wrap,
    .login-form-wrap,
    .auth-form-card,
    .login-footer {
        min-width: 0;
        max-width: 100%;
    }

    .login-shell {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        gap: 0;
        justify-content: flex-start;
    }

    .login-card {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        height: auto;
        min-height: 0;
        max-height: none;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
        animation: none;
    }

    .login-card::before {
        display: none;
    }

    .login-hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        padding: 0;
        gap: 6px;
        overflow: visible;
        background: transparent;
    }

    .login-hero::after {
        display: none;
    }

    .login-brand-block {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;    `
        padding: 0;
        animation: none;
    }

    .login-brand-main {
        gap: 10px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .login-brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .login-brand-logo {
        display: none;
    }

    .login-brand-globe {
        display: block;
        width: 40px;
        height: 40px;
    }

    .login-brand-name {
        font-size: 1.05rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #16a34a;
        font-weight: 800;
    }

    .login-brand-tagline {
        font-size: 0.52rem;
        letter-spacing: 0.05em;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .login-mobile-menu {
        display: inline-flex;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background: #e7f8ee;
        box-shadow: none;
        color: #16a34a;
    }

    .login-hero-copy {
        text-align: left;
        max-width: none;
        animation: none;
        padding-top: 2px;
    }

    .login-hero-title {
        font-size: clamp(1.28rem, 5.8vw, 1.5rem);
        line-height: 1.2;
        text-align: left;
        margin-bottom: 4px;
        text-wrap: balance;
        overflow-wrap: break-word;
        color: #0f172a;
    }

    .login-title-accent {
        background: none;
        -webkit-background-clip: border-box;
        background-clip: border-box;
        color: #16a34a;
        -webkit-text-fill-color: #16a34a;
        animation: none;
    }

    .login-hero-subtitle {
        font-size: 0.78rem;
        line-height: 1.4;
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        max-width: none;
        overflow-wrap: break-word;
        color: #64748b;
    }

    .login-illustration-wrap {
        display: block;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        margin: 0;
        padding: 0 0 22px;
        overflow: hidden;
        border-radius: 0;
        background: transparent;
        position: relative;
        animation: none;
    }

    .login-illustration {
        position: relative;
        z-index: 1;
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: min(200px, 26vh);
        margin: 0 auto;
        object-fit: contain;
        object-position: center center;
        animation: none;
        mix-blend-mode: multiply;
        filter: none;
    }

    .login-lang-scene {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        transform: none;
    }

    .login-lang-orbit--one,
    .login-lang-orbit--two {
        display: none;
    }

    .login-lang-orbit--dots {
        display: block;
        width: 92%;
        height: 92%;
        left: 4%;
        top: 50%;
        opacity: 0.22;
        animation: none;
    }

    .login-deco {
        display: flex;
    }

    .login-deco--plane {
        top: 10%;
        right: 8%;
        width: 22px;
        height: 22px;
        color: #16a34a;
    }

    .login-deco--plane svg {
        width: 22px;
        height: 22px;
    }

    .login-deco--sparkle {
        display: none;
    }

    .login-lang-bubble {
        display: inline-flex;
        min-width: 0;
        padding: 5px 9px;
        font-size: 0.62rem;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    }

    .login-lang-bubble--hello {
        top: 6%;
        left: 6%;
        right: auto;
        bottom: auto;
    }

    .login-lang-bubble--namaste,
    .login-lang-bubble--bonjour,
    .login-lang-bubble--nihao {
        display: none;
    }

    .login-lang-bubble--hola {
        top: auto;
        bottom: 22%;
        left: auto;
        right: 8%;
    }

    .login-lang-bubble--konnichiwa {
        top: 28%;
        left: 3%;
        right: auto;
        bottom: auto;
    }

    .login-lang-bubble--kannada {
        top: auto;
        bottom: 18%;
        left: 6%;
        right: auto;
    }

    .login-lang-bubble--arabic {
        top: 18%;
        right: 4%;
        left: auto;
        bottom: auto;
    }

    .login-hero-features {
        display: none;
    }

    .login-form-wrap {
        height: auto;
        min-height: 0;
        padding: 0;
        margin-top: -28px;
        background: transparent;
        overflow: visible;
        position: relative;
        z-index: 4;
        animation: none;
    }

    .auth-form-card {
        height: auto;
        max-height: none;
        justify-content: flex-start;
        width: 100%;
        padding: 14px 14px 12px;
        border-radius: 22px;
        overflow: visible;
        background: #ffffff;
        border: 1px solid #edf2f7;
        box-shadow:
            0 16px 40px rgba(15, 23, 42, 0.08),
            0 2px 8px rgba(22, 163, 74, 0.06);
    }

    .auth-form-badge {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 6px 16px rgba(22, 163, 74, 0.1);
    }

    .auth-form-logo {
        width: 26px;
        height: 26px;
    }

    .auth-form-header {
        margin-bottom: 10px;
    }

    .auth-form-title {
        font-size: 1.08rem;
        color: #0f172a;
    }

    .auth-form-subtitle {
        font-size: 0.74rem;
        line-height: 1.4;
        color: #64748b;
    }

    .divider {
        margin: 8px 0;
    }

    .divider span {
        background: #ffffff;
    }

    .google-btn,
    .auth-input,
    .auth-submit-btn {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        height: 44px;
        font-size: 0.88rem;
        border-radius: 12px;
    }

    .google-btn {
        border-color: #e5e7eb;
        background: #ffffff;
        color: #111827;
        white-space: nowrap;
    }

    .google-btn svg {
        width: 20px;
        height: 20px;
    }

    .auth-input {
        font-size: 16px;
        border-color: #e5e7eb;
    }

    .auth-submit-btn {
        margin-top: 4px;
        margin-bottom: 2px;
        background: #16a34a;
        box-shadow: 0 10px 22px rgba(22, 163, 74, 0.28);
    }

    .privacy-banner {
        display: none;
    }

    .otp-note {
        font-size: 0.7rem;
        color: #64748b;
        margin-top: 0;
    }

    .auth-stack {
        gap: 6px;
    }

    .auth-form-card .google-btn + .google-btn {
        margin-top: 8px;
    }

    .login-footer {
        display: none;
    }

    .login-blob--three {
        width: 240px;
        height: 240px;
        right: -80px;
        bottom: -80px;
    }
}

@media (max-width: 600px) {
    .login-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-hero {
        gap: 6px;
    }

    .login-hero-title {
        font-size: clamp(1.24rem, 6vw, 1.4rem);
    }

    .login-illustration {
        max-height: min(180px, 24vh);
    }

    .auth-form-card {
        padding: 12px 14px 12px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: max(8px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    }

    .login-brand-mark,
    .login-brand-globe,
    .login-mobile-menu {
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }

    .login-brand-logo {
        display: none;
    }

    .login-brand-name {
        font-size: 0.95rem;
        color: #16a34a;
    }

    .login-brand-tagline {
        font-size: 0.46rem;
        letter-spacing: 0.04em;
    }

    .login-hero {
        gap: 4px;
    }

    .login-hero-title {
        font-size: clamp(1.2rem, 6.2vw, 1.36rem);
        margin-bottom: 2px;
    }

    .login-hero-subtitle {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    .login-illustration-wrap {
        margin: 0;
        padding: 0 0 18px;
        border-radius: 0;
        background: transparent;
    }

    .login-illustration {
        max-height: min(168px, 22vh);
    }

    .login-form-wrap {
        margin-top: -24px;
    }

    .auth-form-card {
        padding: 12px 14px 12px;
        border-radius: 18px;
    }

    .auth-form-badge {
        width: 36px;
        height: 36px;
        margin-bottom: 6px;
        border-radius: 10px;
    }

    .auth-form-logo {
        width: 22px;
        height: 22px;
    }

    .auth-form-header {
        margin-bottom: 8px;
    }

    .auth-form-title {
        font-size: 1.02rem;
    }

    .auth-form-subtitle {
        font-size: 0.72rem;
    }

    .auth-label {
        font-size: 0.78rem;
    }

    .divider {
        margin: 6px 0;
    }

    .google-btn,
    .auth-submit-btn,
    .auth-input {
        min-height: 42px;
        height: 42px;
        font-size: 0.86rem;
        border-radius: 12px;
    }

    .auth-input {
        font-size: 16px;
    }

    .otp-note {
        font-size: 0.66rem;
    }

    .privacy-banner {
        display: none;
    }

    .login-lang-bubble {
        font-size: 0.52rem;
        padding: 3px 7px;
    }

    .login-avatar {
        width: 22px;
        height: 22px;
        font-size: 0.54rem;
        margin-left: -4px;
    }
}

@media (max-width: 360px) {
    .login-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .login-brand-tagline {
        letter-spacing: 0.02em;
    }

    .login-hero-title {
        font-size: 1.16rem;
    }

    .login-hero-subtitle {
        font-size: 0.7rem;
    }

    .login-illustration {
        max-height: min(150px, 20vh);
    }

    .auth-form-card {
        padding: 10px 12px 10px;
        border-radius: 16px;
    }

    .google-btn,
    .auth-submit-btn,
    .auth-input {
        min-height: 40px;
        height: 40px;
    }

    .login-lang-bubble--konnichiwa,
    .login-lang-bubble--hola {
        display: none;
    }
}

@media (max-width: 991.98px) and (max-height: 740px) {
    .login-illustration {
        max-height: min(148px, 20vh);
    }

    .login-hero-subtitle {
        font-size: 0.72rem;
    }

    .auth-form-card {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@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 {
        width: 56px;
        height: 56px;
        margin-bottom: 8px;
    }

    .auth-form-logo {
        width: 34px;
        height: 34px;
    }

    .auth-form-title {
        font-size: 1.05rem;
    }

    .privacy-banner {
        margin-top: 8px;
        padding: 8px 10px;
        font-size: 0.75rem;
    }
}
