/* ============================================================
   TP PH PERFORMANCE PULSE — LOGIN PAGE STYLES  (v3.0)
   Standalone — does not depend on design-system.css.
   Dark mode only. TP Navy + Magenta brand.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --magenta:       #E6007E;
    --magenta-dark:  #C2006A;
    --magenta-light: #FF2FA6;
    --navy-deep:     #080C1A;
    --navy-mid:      #0C1226;
    --border-glass:  rgba(255,255,255,0.07);
    --text-primary:  #ECEEF6;
    --text-secondary:#C7CCE0;
    --text-muted:    #6E7693;
    --input-bg:      rgba(255,255,255,0.06);
    --input-border:  rgba(255,255,255,0.10);
    --error-color:   #FB7185;
    --error-bg:      rgba(251,113,133,0.10);
    --error-border:  rgba(251,113,133,0.28);
    --radius-card:   22px;
    --radius-input:  12px;
    --radius-btn:    12px;
    --font:          'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
    height: 100%;
    background: var(--navy-deep);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* ============================================================
   LAYER 1 — AURORA GRADIENT BACKGROUND
   ============================================================ */

.lp-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(
        -45deg,
        #08091A 0%,
        #0C1226 18%,
        #13082E 36%,
        #090B1E 52%,
        #1A0932 68%,
        #0A0B20 84%,
        #08091A 100%
    );
    background-size: 400% 400%;
    animation: auroraShift 52s ease-in-out infinite;
}

@keyframes auroraShift {
    0%   { background-position: 0%   50%; }
    25%  { background-position: 100% 25%; }
    50%  { background-position: 100% 75%; }
    75%  { background-position: 0%   25%; }
    100% { background-position: 0%   50%; }
}

/* Ambient glow orbs */
.lp-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}
.lp-orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(230,0,126,0.13) 0%, transparent 65%);
    top: -180px; left: -120px;
    animation: orbDrift1 38s ease-in-out infinite alternate;
}
.lp-orb-2 {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(106,63,240,0.11) 0%, transparent 65%);
    bottom: -100px; right: -80px;
    animation: orbDrift2 46s ease-in-out infinite alternate;
}
.lp-orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(122,26,160,0.09) 0%, transparent 65%);
    top: 40%; right: 30%;
    animation: orbDrift3 30s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
    from { transform: translate(0, 0); }
    to   { transform: translate(180px, 140px); }
}
@keyframes orbDrift2 {
    from { transform: translate(0, 0); }
    to   { transform: translate(-150px, -110px); }
}
@keyframes orbDrift3 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(60px, -80px) scale(1.2); }
}

/* Bottom-left magenta light source */
.lp-glow-bl {
    position: absolute;
    bottom: -80px; left: -80px;
    width: 680px; height: 680px;
    background: radial-gradient(ellipse at 30% 70%,
        rgba(230,0,126,0.18) 0%,
        rgba(140,0,90,0.10) 35%,
        rgba(106,63,240,0.06) 60%,
        transparent 75%);
    pointer-events: none;
    animation: glowBlPulse 14s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes glowBlPulse {
    from { opacity: 0.7; transform: scale(1); }
    to   { opacity: 1;   transform: scale(1.12); }
}

/* ============================================================
   LAYER 2 — FLOATING PARTICLES
   ============================================================ */

.lp-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(.22,.61,.36,1);
}

.lp-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    pointer-events: none;
    will-change: transform, opacity;
    animation: particleDrift var(--dur, 22s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes particleDrift {
    0%   { transform: translate(0, 0)                               scale(1);   opacity: var(--op, 0.18); }
    25%  { transform: translate(var(--dx1, 24px), var(--dy1,-38px)) scale(0.8); }
    50%  { transform: translate(var(--dx2,-18px), var(--dy2,-72px)) scale(1.3); opacity: calc(var(--op, 0.18) * 1.5); }
    75%  { transform: translate(var(--dx3, 32px), var(--dy3,-44px)) scale(0.9); }
    100% { transform: translate(0, 0)                               scale(1);   opacity: var(--op, 0.18); }
}

/* ============================================================
   LAYER 3 — GRID PULSE
   ============================================================ */

.lp-grid-pulse {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(230,0,126,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230,0,126,0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: gridPulse 8s ease-in-out infinite;
    will-change: opacity;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.40; }
    50%       { opacity: 1;    }
}

/* ============================================================
   LAYER 4 — DATA WAVES
   ============================================================ */

.lp-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 76%;
    height: 400px;
    overflow: hidden;
    pointer-events: none;
    will-change: transform;
    transition: transform 1.2s cubic-bezier(.22,.61,.36,1);
}

.waves-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    animation: waveScroll 22s linear infinite;
    will-change: transform;
}

@keyframes waveScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   LAYER 5 — FLOATING KPI LABELS
   ============================================================ */

.lp-kpi {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
    transition: transform 1s cubic-bezier(.22,.61,.36,1);
}

.kpi-label {
    position: absolute;
    font-family: var(--font);
    font-size: var(--sz, 11px);
    font-weight: 600;
    color: rgba(255,255,255,1);
    letter-spacing: 0.05em;
    pointer-events: none;
    white-space: nowrap;
    will-change: transform, opacity;
    animation: kpiFloat var(--dur, 12s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes kpiFloat {
    0%, 100% { opacity: 0;                transform: translateY(0); }
    12%, 88% { opacity: var(--op, 0.15);  transform: translateY(var(--dy, -6px)); }
}

/* ============================================================
   LAYER 6 — WORLD MAP
   ============================================================ */

.lp-map {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
    transition: transform 1s cubic-bezier(.22,.61,.36,1);
}

.map-svg {
    width: 100%;
    height: 100%;
}

.map-node {
    fill: rgba(180,160,255,0.55);
}
.map-node-major {
    fill: rgba(230,0,126,0.72);
}

.pulse-ring {
    fill: none;
    stroke: rgba(230,0,126,0.75);
    stroke-width: 0.9;
    animation: nodeRing 3.8s ease-out infinite;
    will-change: r, opacity;
}

@keyframes nodeRing {
    0%   { r: 3.5; opacity: 0.9; }
    100% { r: 16;  opacity: 0;   }
}

.travel-dot {
    fill: rgba(230,0,126,0.90);
    filter: drop-shadow(0 0 4px rgba(230,0,126,0.7));
}

/* ============================================================
   LAYOUT
   ============================================================ */

.login-wrapper {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */

.login-left {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    background: linear-gradient(160deg, rgba(12,18,38,0.85) 0%, rgba(8,9,26,0.90) 100%);
    position: relative;
    overflow: hidden;
}

/* Blueprint grid on left panel */
.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(230,0,126,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230,0,126,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

/* Bottom-left glow orb on panel */
.login-left::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 480px; height: 480px;
    background: radial-gradient(ellipse, rgba(230,0,126,0.14) 0%, transparent 68%);
    pointer-events: none;
}

.left-orb-top {
    position: absolute;
    top: -80px; right: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(ellipse, rgba(106,63,240,0.11) 0%, transparent 70%);
    pointer-events: none;
}

/* Faint bar+trend chart decoration */
.left-chart {
    position: absolute;
    bottom: 100px;
    left: 36px;
    width: 72%;
    height: 130px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.left-top, .left-main, .left-footer {
    position: relative; z-index: 1;
}
.left-top    { animation: fadeSlideUp 0.6s cubic-bezier(.22,.61,.36,1) both; }
.left-main   { animation: fadeSlideUp 0.6s cubic-bezier(.22,.61,.36,1) 0.1s both; }
.left-footer { animation: fadeSlideUp 0.6s cubic-bezier(.22,.61,.36,1) 0.55s both; }

/* ---- Logo ---- */
.brand-logo {
    display: flex; align-items: center; gap: 14px; text-decoration: none;
}
.brand-logo-img {
    width: 44px; height: 44px; object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(230,0,126,0.45));
}
.brand-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-logo-name { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.brand-logo-sub  { font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Headline ---- */
.left-headline {
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}
.left-headline span {
    background: linear-gradient(135deg, var(--magenta-light) 0%, #C078E6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.left-subheadline {
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    margin-bottom: 22px; line-height: 1.5;
}
.left-tagline {
    font-size: 13px; color: var(--text-muted); font-style: italic;
    padding-left: 14px; border-left: 2px solid rgba(230,0,126,0.45); line-height: 1.6;
}
.left-version {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 24px; padding: 5px 12px;
    background: rgba(230,0,126,0.10); border: 1px solid rgba(230,0,126,0.22);
    border-radius: 999px; font-size: 11px; font-weight: 600;
    color: var(--magenta-light); letter-spacing: 0.04em;
}
.left-version::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--magenta-light); box-shadow: 0 0 6px var(--magenta-light);
    animation: pulseDot 2s ease-in-out infinite;
}
.left-footer-text { font-size: 12px; color: var(--text-muted); }

/* ── BETA Badge (login context) ─────────────────────────────── */
.beta-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    background: rgba(230,0,126,0.15);
    border: 1px solid rgba(230,0,126,0.55);
    border-radius: 999px;
    color: #fff;
    font-size: 9px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    cursor: default; user-select: none;
    vertical-align: middle; margin-left: 6px;
    line-height: 1; flex-shrink: 0; white-space: nowrap;
    position: relative;
    transition: box-shadow 250ms ease, transform 250ms ease;
}
.beta-badge:hover {
    box-shadow: 0 0 12px rgba(230,0,126,0.5), 0 0 24px rgba(230,0,126,0.2);
    transform: translateY(-2px);
}
.beta-badge[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%; transform: translateX(-50%);
    background: rgba(12,18,38,0.97);
    border: 1px solid rgba(230,0,126,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11.5px; font-weight: 400;
    letter-spacing: 0; text-transform: none;
    color: #e8eaf0;
    width: 280px; white-space: pre-wrap; line-height: 1.5;
    opacity: 0; pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.beta-badge[data-tip]:hover::after { opacity: 1; }
/* Override gradient-text bleed from .left-headline span */
.left-headline .beta-badge {
    background: rgba(230,0,126,0.15);
    -webkit-background-clip: unset; background-clip: unset;
    -webkit-text-fill-color: #fff; color: #fff;
    margin-left: 8px;
}

/* ============================================================
   BOTTOM FEATURE STRIP
   ============================================================ */

.left-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    position: relative; z-index: 1;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    opacity: 0;
    animation: featEntrance 0.5s cubic-bezier(.22,.61,.36,1) forwards;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    cursor: default;
}

.feat-item:hover {
    background: rgba(230,0,126,0.06);
    border-color: rgba(230,0,126,0.20);
    box-shadow: 0 0 18px rgba(230,0,126,0.08);
}

.feat-icon {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: rgba(230,0,126,0.12);
    border-radius: 8px;
    color: rgba(255,47,166,0.90);
    box-shadow: 0 0 14px rgba(230,0,126,0.18);
    transition: box-shadow 0.25s;
}
.feat-item:hover .feat-icon {
    box-shadow: 0 0 20px rgba(230,0,126,0.30);
}

.feat-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

@keyframes featEntrance {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */

.login-right {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 32px;
    background: rgba(8,9,20,0.80);
    position: relative;
}

.login-right::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 420px; height: 420px;
    background: radial-gradient(ellipse, rgba(106,63,240,0.07) 0%, transparent 65%);
    pointer-events: none;
}

/* ============================================================
   LOGIN CARD — glassmorphism + float + glow
   ============================================================ */

.login-card-wrap {
    width: 100%; max-width: 420px;
    position: relative;
    animation: cardFloat 7s ease-in-out 1s infinite;
    will-change: transform;
}

/* Ambient glow sphere behind the card */
.card-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 480px; height: 480px;
    margin-top: -240px; margin-left: -240px;
    background: radial-gradient(ellipse at 50% 55%,
        rgba(230,0,126,0.20) 0%,
        rgba(106,63,240,0.12) 38%,
        transparent 68%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    animation: cardGlowPulse 8s ease-in-out infinite alternate;
    will-change: opacity, transform;
}

@keyframes cardGlowPulse {
    from { opacity: 0.7; transform: scale(0.95); }
    to   { opacity: 1;   transform: scale(1.05); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

.login-card {
    background: rgba(255,255,255,0.055);
    backdrop-filter: blur(36px) saturate(1.4);
    -webkit-backdrop-filter: blur(36px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-card);
    padding: 44px 40px;
    position: relative; z-index: 1;
    animation: cardEntrance 0.65s cubic-bezier(.22,.61,.36,1) 0.15s both;
    box-shadow:
        0 32px 80px rgba(0,0,0,0.60),
        0 0 0 1px rgba(255,255,255,0.05),
        0 0 80px rgba(230,0,126,0.09),
        inset 0 1px 0 rgba(255,255,255,0.10);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-card:hover {
    border-color: rgba(230,0,126,0.22);
    box-shadow:
        0 32px 80px rgba(0,0,0,0.60),
        0 0 0 1px rgba(255,255,255,0.07),
        0 0 100px rgba(230,0,126,0.13),
        inset 0 1px 0 rgba(255,255,255,0.10);
}

.card-heading { margin-bottom: 32px; }
.card-title {
    font-size: 24px; font-weight: 700; color: #fff;
    letter-spacing: -0.02em; margin-bottom: 4px;
}
.card-subtitle { font-size: 14px; color: var(--text-muted); }

/* ============================================================
   FORM
   ============================================================ */

.login-form { display: flex; flex-direction: column; }

.field {
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px;
    animation: fadeSlideUp 0.5s cubic-bezier(.22,.61,.36,1) both;
}
.field:nth-child(1) { animation-delay: 0.28s; }
.field:nth-child(2) { animation-delay: 0.34s; }
.field:nth-child(3) { animation-delay: 0.40s; }
.field:nth-child(4) { animation-delay: 0.46s; }
.field:nth-child(5) { animation-delay: 0.52s; }

.field-label {
    font-size: 11px; font-weight: 600; color: var(--text-secondary);
    letter-spacing: 0.06em; text-transform: uppercase;
}

.field-wrap { position: relative; }

.field-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none; display: flex; align-items: center;
    transition: color 0.2s;
}

.field-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-input);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; appearance: none;
}
.field-input::placeholder { color: var(--text-muted); }

.field-input:focus {
    border-color: rgba(230,0,126,0.65);
    background: rgba(255,255,255,0.08);
    box-shadow:
        0 0 0 3px rgba(230,0,126,0.14),
        0 0 20px rgba(230,0,126,0.08);
}
.field-wrap:focus-within .field-icon { color: var(--magenta-light); }

.field-pw-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    padding: 4px; display: flex; align-items: center;
    transition: color 0.15s; border-radius: 6px;
}
.field-pw-toggle:hover { color: var(--text-secondary); }
.field-input.is-password { padding-right: 44px; }

/* ---- Remember + Forgot ---- */
.remember-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 26px;
}
.checkbox-label {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    font-size: 13px; color: var(--text-secondary); user-select: none;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
    width: 16px; height: 16px; border-radius: 4px;
    border: 1.5px solid var(--input-border); background: var(--input-bg);
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, background 0.15s; flex-shrink: 0;
}
.checkbox-label input:checked + .checkbox-custom {
    background: var(--magenta); border-color: var(--magenta);
}
.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    width: 9px; height: 7px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.5L3.5 6L8 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
}
.forgot-link {
    font-size: 12px; color: var(--text-muted); text-decoration: none;
    cursor: default; opacity: 0.55; pointer-events: none;
}

/* ---- Error ---- */
.error-message {
    display: none; align-items: center; gap: 8px;
    padding: 10px 14px; background: var(--error-bg);
    border: 1px solid var(--error-border); border-radius: 10px;
    color: var(--error-color); font-size: 13px; font-weight: 500;
    margin-bottom: 16px; animation: fadeIn 0.2s ease;
}
.error-message.visible { display: flex; }
.error-message svg { flex-shrink: 0; }

/* ============================================================
   SIGN IN BUTTON
   ============================================================ */

.btn-signin {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--magenta) 0%, #8A1FBE 100%);
    color: #fff; border: none; border-radius: var(--radius-btn);
    font-family: var(--font); font-size: 15px; font-weight: 600;
    cursor: pointer; letter-spacing: 0.01em;
    transition: opacity 0.15s, transform 0.18s, box-shadow 0.18s;
    box-shadow: 0 4px 28px rgba(230,0,126,0.36);
    position: relative; overflow: hidden;
}
.btn-signin:hover {
    opacity: 0.92;
    box-shadow: 0 8px 40px rgba(230,0,126,0.52), 0 0 0 1px rgba(230,0,126,0.28);
    transform: translateY(-2px);
}
.btn-signin:active { transform: translateY(0); opacity: 1; }
.btn-signin:disabled { opacity: 0.58; cursor: not-allowed; transform: none; }

.btn-ripple {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.22);
    width: 10px; height: 10px;
    margin-left: -5px; margin-top: -5px;
    transform: scale(0); pointer-events: none;
    animation: rippleOut 0.58s ease-out forwards;
}
@keyframes rippleOut {
    to { transform: scale(38); opacity: 0; }
}

.btn-signin .spinner {
    display: none; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto;
}
.btn-signin.loading .btn-text { display: none; }
.btn-signin.loading .spinner  { display: block; }

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    12%  { transform: translateX(-9px); }
    25%  { transform: translateX(8px); }
    37%  { transform: translateX(-7px); }
    50%  { transform: translateX(6px); }
    62%  { transform: translateX(-4px); }
    75%  { transform: translateX(3px); }
    87%  { transform: translateX(-2px); }
}

@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.login-card.shake {
    animation: shake 0.48s cubic-bezier(.36,.07,.19,.97) both;
    border-color: rgba(251,113,133,0.35) !important;
}

/* ============================================================
   ACCESSIBILITY — prefers-reduced-motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .lp-bg, .lp-particles, .lp-grid-pulse,
    .lp-waves, .lp-kpi, .lp-map, .lp-orb,
    .lp-glow-bl, .card-glow { display: none !important; }

    .login-card-wrap    { animation: none !important; }
    .login-card         { animation: none !important; opacity: 1 !important; transform: none !important; }
    .left-top, .left-main, .left-footer { animation: none !important; opacity: 1 !important; transform: none !important; }
    .left-features      { animation: none !important; }
    .feat-item          { animation: none !important; opacity: 1 !important; transform: none !important; }
    .field              { animation: none !important; opacity: 1 !important; transform: none !important; }
    .btn-signin         { transition: none !important; }
    .field-input        { transition: none !important; }
    .login-left         { background: linear-gradient(160deg, #0C1226 0%, #08091A 100%); }
    .login-right        { background: #0A0B18; }
    .login-card:hover   { border-color: var(--border-glass) !important; box-shadow: 0 24px 60px rgba(0,0,0,0.5) !important; }
    .feat-item:hover    { background: rgba(255,255,255,0.04) !important; box-shadow: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
    .left-headline { font-size: clamp(22px, 3vw, 28px); }
    .login-left { padding: 44px 44px; }
}

@media (max-width: 860px) {
    html, body { overflow: auto; }
    .login-wrapper { flex-direction: column; min-height: 100dvh; }
    .login-left {
        flex: none; padding: 36px 32px 40px; min-height: auto;
    }
    .left-orb-top { display: none; }
    .left-chart   { display: none; }
    .left-headline { font-size: 24px; }
    .login-right  { padding: 32px 20px 48px; align-items: flex-start; }
    .login-card   { padding: 36px 28px; }
    .login-card-wrap { animation: none; }
    .lp-waves     { width: 100%; }
    .left-features { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
}

@media (max-width: 600px) {
    .left-features { grid-template-columns: 1fr 1fr; }
    .feat-label    { font-size: 10.5px; }
    .feat-icon     { width: 26px; height: 26px; border-radius: 7px; }
}

@media (max-width: 480px) {
    .login-left  { padding: 28px 22px 32px; }
    .login-card  { padding: 28px 20px; }
    .card-title  { font-size: 20px; }
    .left-headline { font-size: 21px; }
    .left-features { grid-template-columns: 1fr; }
    .feat-item   { padding: 9px 12px; }
}
