:root {
    --navy: #0b1b33;
    --navy-deep: #071222;
    --navy-soft: #152840;
    --emerald: #00b86b;
    --emerald-deep: #009688;
    --emerald-bright: #14d48a;
    --gradient: linear-gradient(135deg, #009688 0%, #00b86b 48%, #1ee08f 100%);
    --text: #0b1b33;
    --muted: #5f738c;
    --line: rgba(15, 36, 64, 0.12);
    --surface: #f4f7fb;
    --white: #ffffff;
    --danger: #d14343;
    --shadow: 0 24px 60px rgba(7, 18, 34, 0.18);
    --radius: 22px;
    --font: "Manrope", system-ui, sans-serif;
    --display: "Sora", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 85% 10%, rgba(0, 184, 107, 0.12), transparent 55%),
        radial-gradient(700px 380px at 10% 90%, rgba(0, 150, 136, 0.08), transparent 50%),
        linear-gradient(160deg, #eef3f8 0%, #f7fafc 45%, #eef6f2 100%);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
    min-height: 100vh;
}

.auth-sidebar {
    position: relative;
    overflow: hidden;
    color: #e8f1f8;
    background:
        radial-gradient(520px 320px at 85% 8%, rgba(20, 212, 138, 0.22), transparent 58%),
        radial-gradient(420px 280px at 10% 90%, rgba(0, 150, 136, 0.14), transparent 55%),
        linear-gradient(210deg, #04101f 0%, #071222 42%, #0b1b33 100%);
    padding: 36px 40px 44px;
}

.sidebar-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 212, 138, 0.28), transparent 68%);
    animation: drift 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.sidebar-inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand {
    display: inline-flex;
    text-decoration: none;
    width: fit-content;
}
.brand-logo {
    display: block;
    height: 54px;
    width: auto;
    background: transparent;
    animation: rise 0.7s ease both;
}
.brand-mark,
.brand-word { display: none; }

.sidebar-hero { animation: rise 0.8s ease 0.08s both; }
.eyebrow {
    margin: 0 0 10px;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--emerald-bright);
    font-weight: 700;
}
.sidebar-hero h1 {
    margin: 0 0 12px;
    font-family: var(--display);
    font-size: clamp(1.7rem, 2.6vw, 2.35rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.lede {
    margin: 0;
    color: rgba(232, 241, 248, 0.78);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 42ch;
}

.wallet-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    animation: rise 0.85s ease 0.14s both;
}
.wallet-points li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
}
.wallet-points .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--emerald-bright);
    background: rgba(20, 212, 138, 0.12);
    border: 1px solid rgba(20, 212, 138, 0.22);
}
.wallet-points .icon svg { width: 22px; height: 22px; }
.wallet-points strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 2px;
}
.wallet-points span {
    color: rgba(232, 241, 248, 0.68);
    font-size: 0.9rem;
    line-height: 1.4;
}

.float-card {
    margin-top: auto;
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 183, 210, 0.22);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: rise 0.9s ease 0.2s both;
}
.float-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 241, 248, 0.62);
    margin-bottom: 6px;
}
.float-amount {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.float-amount span { color: var(--emerald-bright); margin-right: 2px; }
.float-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: rgba(232, 241, 248, 0.65);
    font-size: 0.86rem;
}
.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
}
.pill.up {
    color: #052e1a;
    background: var(--gradient);
}

.trust-strip {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 183, 210, 0.22);
    animation: rise 0.9s ease 0.2s both;
}
.trust-item {
    min-width: 0;
    padding: 4px 6px;
}
.trust-item strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.trust-item span {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(232, 241, 248, 0.68);
}

.auth-main {
    display: grid;
    place-items: center;
    padding: 40px 28px;
}

.auth-panel {
    width: min(440px, 100%);
    animation: rise 0.75s ease both;
}

.panel-head { margin-bottom: 22px; }
.panel-mark {
    display: none;
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}
.panel-brand {
    display: none;
    align-items: center;
    margin-bottom: 16px;
}
.panel-brand img {
    height: 40px;
    width: auto;
}
.panel-head h2 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: 1.85rem;
    letter-spacing: -0.03em;
}
.panel-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(209, 67, 67, 0.08);
    border: 1px solid rgba(209, 67, 67, 0.25);
    color: var(--danger);
    font-size: 0.92rem;
}

.auth-form {
    display: grid;
    gap: 14px;
}
.turnstile-wrap {
    min-height: 72px;
}
.cf-turnstile {
    min-height: 65px;
}
.turnstile-hint {
    margin: 8px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--danger);
}
.auth-form label {
    display: grid;
    gap: 6px;
}
.auth-form label > span {
    font-size: 0.86rem;
    font-weight: 600;
    color: #243954;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form select {
    width: 100%;
    border: 1.5px solid var(--line);
    background: var(--white);
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.auth-form input:focus,
.auth-form select:focus {
    border-color: rgba(0, 184, 107, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 184, 107, 0.14);
}
.field-hint {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
}
.phone-field {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: stretch;
}
.dial-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #eef6f2;
    color: var(--emerald-deep);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}
.phone-field input {
    width: 100%;
    border: 1.5px solid var(--line);
    background: var(--white);
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    outline: none;
}
.phone-field input:focus {
    border-color: rgba(0, 184, 107, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 184, 107, 0.14);
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.remember {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}
.remember input { width: auto; accent-color: var(--emerald); }

.btn-primary {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 750;
    color: #052e1a;
    background: var(--gradient);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 150, 136, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 34px rgba(0, 150, 136, 0.34);
}
.btn-primary:active { transform: translateY(0); }

.switch {
    margin: 18px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.94rem;
}
.switch a {
    color: var(--emerald-deep);
    font-weight: 700;
    text-decoration: none;
}
.switch a:hover { text-decoration: underline; }
.switch.legal-links {
    font-size: 0.86rem;
    margin-top: 14px;
}
.auth-legal {
    margin: 18px auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    width: min(440px, 100%);
}
.auth-legal a {
    color: var(--emerald-deep);
    font-weight: 600;
    text-decoration: none;
}
.auth-legal a:hover { text-decoration: underline; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-24px, 18px, 0) scale(1.08); }
}

@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-sidebar { min-height: auto; padding-bottom: 32px; }
    .float-card,
    .trust-strip { margin-top: 8px; }
    .panel-mark { display: none; }
    .panel-brand { display: inline-flex; }
    .auth-main { padding-top: 28px; }
}

@media (max-width: 560px) {
    .grid-2 { grid-template-columns: 1fr; }
    .brand-logo { height: 52px; }
    .sidebar-hero h1 { font-size: 1.55rem; }
    .trust-strip { grid-template-columns: 1fr; gap: 8px; }
}
