

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

:root {
    --navy:   var(--navy);
    --green:  #92d05d;
    --cyan:   #b5e0ea;
    --gold:   #d1b06c;
    --black:  #0d0d0d;
    --gray:   #6b7280;
    --border: #e8ecf2;
}

html, body { height: 100%; font-family: 'Plus Jakarta Sans', sans-serif; overflow: hidden; }

/* ── Background ─────────────────────────────────────────────── */
.bg-wrapper {
    position: fixed; inset: 0;
    background: linear-gradient(155deg, #eef1f8 0%, #f7f9fc 50%, #eaf0f5 100%);
    z-index: 0; overflow: hidden;
}

.bg-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(7,30,73,0.1) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* Decorative blobs */
.bg-shape { position: absolute; border-radius: 50%; filter: blur(60px); }
.bg-shape-1 {
    width: 600px; height: 600px;
    background: rgba(181,224,234,0.35);
    top: -200px; right: -100px;
    animation: blobFloat 10s ease-in-out infinite;
}
.bg-shape-2 {
    width: 400px; height: 400px;
    background: rgba(146,208,93,0.2);
    bottom: -100px; left: -80px;
    animation: blobFloat 13s ease-in-out infinite reverse;
}
.bg-shape-3 {
    width: 300px; height: 300px;
    background: rgba(209,176,108,0.2);
    top: 50%; left: 25%;
    animation: blobFloat 9s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes blobFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-28px) scale(1.06); }
}

/* ── Page ────────────────────────────────────────────────────── */
.login-page {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px;
}

/* ── Left Panel ─────────────────────────────────────────────── */
.login-left {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    display: none;
}

@media (min-width: 1024px) { .login-left { display: flex; } }

.login-left-content { text-align: center; max-width: 440px; }

.left-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 16px;
    background: rgba(7,30,73,0.07);
    border: 1px solid rgba(7,30,73,0.12);
    border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--navy);
    margin-bottom: 24px;
}

.left-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--green); border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.left-heading {
    font-size: 38px; font-weight: 800;
    color: var(--black); letter-spacing: -1.5px; line-height: 1.15;
    margin-bottom: 16px;
}

.left-heading span { color: var(--navy); }

.left-desc {
    font-size: 15px; color: var(--gray); line-height: 1.75;
    margin-bottom: 36px;
}

/* Feature cards */
.feature-list { display: flex; flex-direction: column; gap: 12px; text-align: left; }

.feature-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.85);
    border: 1.5px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(7,30,73,0.05);
    transition: all 0.2s;
}

.feature-item:hover { transform: translateX(4px); box-shadow: 0 4px 18px rgba(7,30,73,0.09); }

.feature-icon {
    width: 42px; height: 42px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 21px; height: 21px;
    stroke: currentColor; fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.fi-navy  { background: rgba(7,30,73,0.08);   color: var(--navy); }
.fi-green { background: rgba(146,208,93,0.15); color: #6faa3b; }
.fi-cyan  { background: rgba(181,224,234,0.35);color: #3da8c0; }

.ft-title { font-size: 13.5px; font-weight: 700; color: var(--black); }
.ft-sub   { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* ── Right Panel ─────────────────────────────────────────────── */
.login-right {
    width: 100%;
    max-width: 460px;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(7,30,73,0.1);
}

@media (min-width: 1024px) { .login-right { width: 440px; } }

.login-card {
    width: 100%;
    animation: slideUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

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

/* Logo */
.login-header { margin-bottom: 30px; }

.logo-wrap { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }

.logo-icon {
    width: 50px; height: 50px;
    background: var(--navy);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(7,30,73,0.28);
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 16px; height: 16px;
    background: var(--green);
    border-radius: 0 14px 0 10px;
}

.logo-icon svg {
    width: 24px; height: 24px;
    stroke: #fff; fill: none;
    stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
    position: relative; z-index: 1;
}

.app-name { font-size: 16px; font-weight: 800; color: var(--black); letter-spacing: -0.3px; }
.app-sub  { font-size: 10.5px; font-weight: 700; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; margin-top: 1px; }

.login-title    { font-size: 26px; font-weight: 800; color: var(--black); letter-spacing: -0.5px; margin-bottom: 6px; }
.login-subtitle { font-size: 14px; color: var(--gray); }

/* Alert */
.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 10px;
    font-size: 13.5px; font-weight: 500; margin-bottom: 20px;
}

.alert svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.alert-danger  { background: #fff0f0; border: 1.5px solid #fca5a5; color: #c62828; }
.alert-success { background: rgba(146,208,93,0.1); border: 1.5px solid rgba(146,208,93,0.4); color: #5a8e2a; }

/* Form */
.form-group { margin-bottom: 18px; }

.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 8px; }

.input-wrap { position: relative; }

.input-icon {
    position: absolute; left: 13px; top: 50%;
    transform: translateY(-50%);
    color: var(--gray); pointer-events: none;
    transition: color 0.2s;
}

.input-icon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }

.form-control {
    width: 100%; height: 50px;
    background: #f6f8fb;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    padding: 0 44px 0 44px;
    font-size: 14px; font-weight: 500; color: var(--black);
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none; transition: all 0.22s;
    -webkit-appearance: none; appearance: none;
}

.form-control::placeholder { color: #9ca3af; font-weight: 400; }

.form-control:focus {
    border-color: var(--navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7,30,73,0.08);
}

.input-wrap:focus-within .input-icon { color: var(--navy); }

.toggle-password {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--gray); padding: 4px;
    transition: color 0.2s;
    display: flex; align-items: center;
}

.toggle-password:hover { color: var(--navy); }
.toggle-password svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Options */
.form-options {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 22px;
}

.remember-me { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.remember-me input { accent-color: var(--navy); cursor: pointer; }
.remember-me span { font-size: 13px; color: var(--gray); font-weight: 500; }
.forgot-link { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.forgot-link:hover { color: var(--green); }

/* Submit button */
.btn-login {
    width: 100%; height: 50px;
    background: var(--navy);
    border: none; border-radius: 11px;
    color: #fff; font-size: 15px; font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer; position: relative; overflow: hidden;
    transition: all 0.25s;
    box-shadow: 0 8px 24px rgba(7,30,73,0.28);
    letter-spacing: 0.2px;
}

/* Green corner accent */
.btn-login::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 46px; height: 46px;
    background: var(--green);
    border-radius: 0 11px 0 100%;
    opacity: 0.9;
}

.btn-login:hover {
    background: #0d2d6b;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(7,30,73,0.38);
}

.btn-login:active { transform: none; }

.btn-text { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; z-index: 1; }
.btn-text svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.btn-login.loading .btn-text { display: none; }

.spinner {
    display: none; width: 20px; height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite; margin: 0 auto;
    position: relative; z-index: 1;
}

.btn-login.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.login-footer {
    text-align: center; margin-top: 22px;
    padding-top: 20px;
    border-top: 1.5px solid var(--border);
}

.login-footer p { font-size: 12px; color: var(--gray); line-height: 1.6; }

.version-badge {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700;
    border: 1.5px solid var(--border);
    color: var(--gray);
}

.version-badge .vb-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
}

/* Responsive */
@media (max-width: 640px) {
    .login-right { padding: 28px 20px; background: rgba(255,255,255,0.96); border: none; }
    .login-title { font-size: 22px; }
}
