* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --text-dark: #13314a;
    --text-muted: #6f8297;
    --primary: #10a7a5;
    --primary-dark: #087e83;
}
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    color: var(--text-dark);
    background: radial-gradient(circle at 8% 0%, #d9efee, transparent 38%),
                linear-gradient(135deg, #edf5f7, #f4fbfc 48%, #dcecf0);
}
.page-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-shell {
    width: min(960px, 100%);
    min-height: 480px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 25px 60px rgba(14,55,75,.16);
}
/* ==================== LEFT PANEL ==================== */
.visual-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 24px 28px 20px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background: radial-gradient(circle at 10% 100%, rgba(29,211,192,.2), transparent 36%),
                linear-gradient(150deg, #083948, #0b5e6a 60%, #0b9295);
}
.visual-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    z-index: -1;
    pointer-events: none;
}
.visual-panel::after {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,.035) 0 34%, transparent 34.5%),
                radial-gradient(circle, rgba(255,255,255,.04) 0 52%, transparent 52.5%),
                radial-gradient(circle, rgba(255,255,255,.035) 0 70%, transparent 70.5%);
    z-index: -1;
    pointer-events: none;
}
/* Old header is hidden; the portal label takes its place. */
.brand-row { display: none; }
.top-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.09);
    color: #e9fffb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    z-index: 3;
}
.top-pill .dot {
    flex: 0 0 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #76f3d2;
    box-shadow: 0 0 0 4px rgba(118,243,210,.16);
    animation: portalPulse 2.8s ease-out infinite;
}
.visual-center {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 24px 12px;
    isolation: isolate;
}
/* Decorative orbit rings */
.visual-center::before, .visual-center::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 265px; height: 265px;
    border: 1px solid rgba(173,247,239,.13);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}
.visual-center::after { width: 310px; height: 310px; border-style: dashed; opacity: .6; }
/* ==================== FLOATING BUBBLES ==================== */
.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.4), rgba(255,255,255,.08) 42%, rgba(255,255,255,.025) 75%);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 0 14px rgba(255,255,255,.09);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb var(--duration, 7s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
.orb.orb-1 { width: 65px; height: 65px; top: 8%; left: 7%; --duration: 7s; --delay: -2s; --dx: 9px; --dy: -14px; }
.orb.orb-2 { width: 52px; height: 52px; top: 15%; right: 8%; --duration: 8s; --delay: -4s; --dx: -12px; --dy: 10px; }
.orb.orb-3 { width: 80px; height: 80px; bottom: 7%; right: 5%; --duration: 9s; --delay: -1s; --dx: -8px; --dy: -17px; }
.orb.orb-4 { width: 45px; height: 45px; bottom: 8%; left: 12%; --duration: 6s; --delay: -3s; --dx: 13px; --dy: -9px; }
.spark {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #b4f8ed;
    pointer-events: none;
    animation: blinkSpark 4s ease-in-out infinite;
}
.spark.s1 { top: 13%; left: 33%; animation-delay: -1s; }
.spark.s2 { top: 46%; right: 4%; animation-delay: -2s; }
.spark.s3 { bottom: 15%; left: 29%; animation-delay: -3s; }
/* ==================== CENTER GLASS CARD ==================== */
.feature-card {
    position: relative;
    z-index: 2;
    width: min(224px, 100%);
    min-height: 220px;
    padding: 24px 16px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.07));
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 18px 40px rgba(4,22,34,.22), inset 0 1px 0 rgba(255,255,255,.15);
    backdrop-filter: blur(12px);
}
.feature-icon {
    width: 80px; height: 80px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 23px;
    background: linear-gradient(150deg, #32c3c0, #129895);
    box-shadow: 0 12px 26px rgba(9,183,176,.28), inset 0 1px 0 rgba(255,255,255,.23);
    font-size: 34px;
    color: white;
    animation: pulseGlow 5s ease-in-out infinite;
}
.feature-card h2 { font-size: 20px; line-height: 1.24; font-weight: 800; letter-spacing: -.03em; margin-bottom: 7px; }
.feature-card p { font-size: 10px; color: rgba(255,255,255,.8); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
/* ==================== SAFETY SLOGAN ==================== */
.slogan-box {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.16);
    padding-top: 16px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    gap: 8px;
    align-items: center;
    color: rgba(255,255,255,.95);
    z-index: 3;
}
.quote-mark { font-size: 30px; line-height: 1; font-weight: 800; }
.quote-mark.left { color: #80c6fa; }
.quote-mark.right { color: #77f3d7; justify-self: end; }
.slogan-text { font-size: 12px; line-height: 1.65; font-weight: 700; text-align: center; }
/* ==================== RIGHT PANEL ==================== */
.form-panel { background: #fff; padding: 30px 32px 24px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.form-content { width: 100%; max-width: 420px; }
.mini-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: #e8f3f1; color: #087f95; font-size: 10px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; margin-bottom: 18px; }
.mini-badge i { font-size: 11px; }
.form-title { font-size: 34px; line-height: 1.14; letter-spacing: -.04em; font-weight: 800; color: #102c47; margin-bottom: 10px; }
.form-desc { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin-bottom: 24px; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; font-size: 12px; font-weight: 700; color: #1b3550; margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-wrap .left-icon, .input-wrap .right-icon { position: absolute; top: 50%; transform: translateY(-50%); color: #8da2b2; font-size: 16px; }
.input-wrap .left-icon { left: 14px; pointer-events: none; }
.input-wrap .right-icon { right: 6px; width: 36px; height: 36px; cursor: pointer; background: transparent; border: 0; border-radius: 8px; }
.input-wrap input { width: 100%; height: 48px; border-radius: 13px; border: 1.5px solid #d8e3ea; background: #f9fbfc; padding: 0 44px 0 42px; font: inherit; font-size: 13px; color: #17344d; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap input::placeholder { color: #91a4b4; }
.input-wrap input:focus { border-color: #10a7a5; background: #fff; box-shadow: 0 0 0 4px rgba(16,167,165,.12); }
.remember-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 20px; }
.remember-box { display: inline-flex; align-items: center; gap: 8px; color: #60768b; font-size: 12px; cursor: pointer; user-select: none; }
.remember-box input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.remember-days { color: #73899c; font-size: 11px; font-weight: 600; }
.submit-btn { width: 100%; height: 48px; border: 0; border-radius: 13px; background: linear-gradient(90deg, #087e83, #099e98); color: #fff; font: inherit; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; transition: transform .2s, box-shadow .2s; box-shadow: 0 12px 26px rgba(16,167,165,.22); }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(16,167,165,.3); }
.submit-btn:active { transform: translateY(0); }
.submit-btn i { font-size: 14px; }
button:focus-visible, .remember-box input:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 3px; }
.secure-note { margin-top: 20px; padding-top: 14px; border-top: 1px solid #e8eef2; display: flex; justify-content: center; align-items: center; gap: 8px; color: #73899c; font-size: 11px; text-align: center; line-height: 1.5; }
.inline-error { background: #fff1f1; color: #b52d2d; border: 1px solid #ffd3d3; border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
/* ==================== ANIMATIONS ==================== */
@keyframes floatOrb {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(var(--dx, 8px), var(--dy, -12px)) scale(1.055); }
}
@keyframes blinkSpark {
    0%, 100% { opacity: .25; transform: scale(.85); }
    50% { opacity: .75; transform: scale(1.15); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 12px 26px rgba(9,183,176,.28), inset 0 1px 0 rgba(255,255,255,.23); }
    50% { box-shadow: 0 12px 38px rgba(96,240,222,.42), inset 0 1px 0 rgba(255,255,255,.23); }
}
@keyframes portalPulse {
    0% { box-shadow: 0 0 0 3px rgba(118,243,210,.28); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(118,243,210,0); }
}
/* ==================== RESPONSIVE ==================== */
@media (min-width: 761px) and (max-height: 590px) {
    .page-wrap { padding: 12px; }
    .login-shell { min-height: 0; }
    .visual-panel { padding: 18px 22px; }
    .visual-center { min-height: 220px; padding: 12px 8px; }
    .feature-card { width: 195px; min-height: 190px; padding: 16px; }
    .feature-icon { width: 64px; height: 64px; font-size: 28px; margin-bottom: 12px; }
    .form-panel { padding: 20px 26px; }
    .mini-badge { margin-bottom: 12px; }
    .form-title { font-size: 30px; }
    .form-desc { margin-bottom: 16px; }
    .input-group { margin-bottom: 12px; }
    .remember-row { margin-bottom: 14px; }
    .secure-note { margin-top: 14px; padding-top: 10px; }
}
@media (max-width: 760px) {
    .page-wrap { padding: 16px; }
    .login-shell { grid-template-columns: minmax(0, 1fr); max-width: 480px; min-height: 0; border-radius: 24px; }
    .visual-panel { padding: 20px; }
    .visual-center { min-height: 235px; padding: 20px 8px; }
    .feature-card { width: 195px; min-height: 185px; padding: 16px; }
    .feature-icon { width: 65px; height: 65px; font-size: 28px; margin-bottom: 12px; }
    .feature-card h2 { font-size: 18px; }
    .form-panel { padding: 26px 24px; }
    .form-title { font-size: 30px; }
    .input-wrap input { font-size: 16px; }
    .slogan-text { font-size: 11px; }
}
@media (max-width: 360px) {
    .page-wrap { padding: 10px; }
    .visual-panel, .form-panel { padding: 18px; }
    .form-title { font-size: 26px; }
    .remember-row { gap: 10px; }
    .orb.orb-3 { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}