:root {
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-line: #e2e8f0;
    --auth-accent: #0d9488;
    --auth-accent-2: #0f766e;
    --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

.ja-auth-body {
    font-family: var(--font);
    color: var(--auth-ink);
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

.ja-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
}

.ja-auth-brand {
    position: relative;
    overflow: hidden;
    padding: 44px 48px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    background:
        radial-gradient(900px 500px at 8% 8%, rgba(45, 212, 191, 0.38), transparent 55%),
        radial-gradient(700px 420px at 92% 78%, rgba(56, 189, 248, 0.22), transparent 50%),
        linear-gradient(155deg, #042f2e 0%, #0f766e 48%, #115e59 100%);
}

.ja-auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.45;
    pointer-events: none;
}

.ja-auth-brand::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -60px;
    bottom: -40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    filter: blur(2px);
    pointer-events: none;
}

.ja-auth-brand > * { position: relative; z-index: 1; }

.ja-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ja-auth-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    overflow: hidden;
}

.ja-auth-logo-mark--img {
    background: #fff;
    padding: 4px;
}

.ja-auth-logo-mark--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ja-auth-logo strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ja-auth-logo span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 2px;
}

.ja-auth-eyebrow {
    display: inline-flex;
    margin: 0 0 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
}

.ja-auth-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 520px;
}

.ja-auth-hero p {
    margin: 0;
    max-width: 460px;
    font-size: 15.5px;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
    font-weight: 500;
}

.ja-auth-mock {
    margin-top: 28px;
    width: min(360px, 100%);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    animation: jaAuthRise 0.7s ease both;
}

.ja-auth-mock-bar {
    display: flex;
    gap: 6px;
    padding: 12px 14px;
    background: rgba(0,0,0,0.18);
}

.ja-auth-mock-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
}

.ja-auth-mock-chat {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.ja-bubble {
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.4;
    animation: jaAuthBubble 0.55s ease both;
}

.ja-bubble.in {
    justify-self: start;
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    border-bottom-left-radius: 4px;
}

.ja-bubble.out {
    justify-self: end;
    background: #99f6e4;
    color: #134e4a;
    border-bottom-right-radius: 4px;
}

.ja-bubble:nth-child(2) { animation-delay: 0.12s; }
.ja-bubble:nth-child(3) { animation-delay: 0.22s; }
.ja-bubble:nth-child(4) { animation-delay: 0.32s; }

.ja-auth-bottom {
    display: grid;
    gap: 18px;
}

.ja-auth-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ja-auth-point {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
}

.ja-auth-point i {
    font-size: 14px;
    opacity: 0.95;
}

.ja-auth-copy {
    font-size: 12px;
    font-weight: 650;
    opacity: 0.7;
}

.ja-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background:
        radial-gradient(620px 320px at 100% 0%, rgba(13, 148, 136, 0.1), transparent 55%),
        radial-gradient(480px 280px at 0% 100%, rgba(14, 165, 233, 0.06), transparent 50%),
        #f8fafc;
}

.ja-auth-card {
    width: min(440px, 100%);
    background: #fff;
    border: 1px solid var(--auth-line);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    padding: 34px;
    animation: jaAuthRise 0.55s ease both;
}

.ja-auth-card-top {
    margin-bottom: 14px;
}

.ja-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid #ccfbf1;
}

.ja-auth-card h2 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ja-auth-card .sub {
    margin: 0 0 24px;
    color: var(--auth-muted);
    font-size: 14px;
    font-weight: 550;
}

.ja-auth-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 750;
    color: #334155;
}

.ja-auth-input-wrap {
    position: relative;
}

.ja-auth-input-wrap > i:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.ja-auth-input {
    width: 100%;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    padding: 12px 14px 12px 42px;
    font: inherit;
    font-size: 14px;
    font-weight: 550;
    background: #fff;
    outline: none;
    transition: 0.15s ease;
}

.ja-auth-input-wrap.has-toggle .ja-auth-input {
    padding-right: 46px;
}

.ja-auth-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: 0.15s ease;
}

.ja-auth-eye:hover {
    background: #f1f5f9;
    color: #0f766e;
}

.ja-auth-eye.is-on {
    color: #0d9488;
}

.ja-auth-eye i {
    font-size: 16px;
    line-height: 1;
}

.ja-auth-input:focus {
    border-color: rgba(13, 148, 136, 0.55);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.ja-auth-field { margin-bottom: 16px; }

.ja-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 22px;
}

.ja-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.ja-auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-accent);
}

.ja-auth-link {
    color: var(--auth-accent-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.ja-auth-link:hover { text-decoration: underline; }

.ja-auth-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 13px 16px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #14b8a6, #0d9488 55%, #0f766e);
    box-shadow: 0 14px 28px rgba(13, 148, 136, 0.3);
    cursor: pointer;
    transition: 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ja-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(13, 148, 136, 0.34);
}

.ja-auth-btn:active { transform: translateY(0); }

.ja-auth-error {
    margin-top: 6px;
    color: #e11d48;
    font-size: 12.5px;
    font-weight: 650;
}

.ja-auth-status {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0fdfa;
    color: #115e59;
    font-size: 13px;
    font-weight: 650;
}

.ja-auth-foot {
    margin-top: 18px;
    text-align: center;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 550;
}

@keyframes jaAuthRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes jaAuthBubble {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
    .ja-auth-shell { grid-template-columns: 1fr; }
    .ja-auth-brand {
        min-height: auto;
        padding: 28px;
        gap: 22px;
    }
    .ja-auth-hero h1 { font-size: 28px; }
    .ja-auth-mock { display: none; }
    .ja-auth-points { display: none; }
}
