:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --bg-dark: #070b14;
    --card-bg: rgba(17, 24, 39, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ── Dynamic Background ── */
.bg-canvas {
    position: fixed; inset: 0; z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}
.bg-mesh {
    position: absolute; inset: 0;
    background-image: 
        radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.1) 0px, transparent 50%), 
        radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);
    filter: blur(80px);
    opacity: 0.6;
}
.bg-grid {
    position: fixed; inset: 0; opacity: 0.15;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ── Main Container ── */
.login-card {
    display: flex; width: 960px; max-width: 94vw; min-height: 600px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.5);
    animation: cardAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Branding Panel ── */
.brand-panel {
    flex: 1.1; background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.2));
    padding: 4rem; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; border-right: 1px solid var(--border);
}
.brand-content { position: relative; z-index: 2; }
.logo { display: flex; align-items: center; gap: 14px; margin-bottom: 3.5rem; }
.logo-box {
    width: 48px; height: 48px; background: var(--primary); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}
.logo-box i { font-size: 1.5rem; color: #fff; }
.logo-text h3 { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; line-height: 1; }
.logo-text span { font-size: .65rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }

.hero-text h1 { font-family: 'Outfit', sans-serif; font-size: 2.75rem; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-text h1 span { color: var(--primary); }
.hero-text p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 400px; }

.feature-list { display: flex; gap: 1.5rem; margin-top: 2rem; }
.feature-item { 
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    padding: 1rem; border-radius: 16px; border-left: 3px solid var(--primary);
}
.feature-item .val { font-size: 1.25rem; font-weight: 700; color: #fff; }
.feature-item .lbl { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Login Form Panel ── */
.form-panel { width: 420px; padding: 4rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.form-header { margin-bottom: 2.5rem; }
.form-header h2 { font-family: 'Outfit', sans-serif; font-size: 1.75rem; color: #fff; margin-bottom: 0.5rem; }
.form-header p { font-size: .875rem; color: var(--text-muted); }

.input-group { margin-bottom: 1.5rem; position: relative; }
.input-group label { display: block; font-size: .75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 1px; }
.input-control {
    width: 100%; height: 54px; background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155; border-radius: 14px; padding: 0 1.25rem 0 3rem;
    color: #fff; font-family: inherit; font-size: 0.95rem;
    transition: all 0.3s; outline: none;
}
.input-control:focus { border-color: var(--primary); background: rgba(30, 41, 59, 0.8); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }
.input-icon { position: absolute; left: 1.1rem; bottom: 1.1rem; color: #475569; font-size: 1.1rem; transition: 0.3s; }
.input-control:focus + .input-icon { color: var(--primary); }

.options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.remember { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .85rem; color: var(--text-muted); }
.remember input { width: 18px; height: 18px; accent-color: var(--primary); border-radius: 4px; }

.btn-submit {
    width: 100%; height: 56px; background: var(--primary); color: #fff;
    border: none; border-radius: 14px; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s; box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 15px 25px -5px rgba(16, 185, 129, 0.4); }
.btn-submit:active { transform: translateY(0); }

.alert-error {
    background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5; padding: 1rem; border-radius: 12px; font-size: .85rem; margin-bottom: 2rem;
    display: flex; align-items: center; gap: 10px;
}

.footer-hint { margin-top: 2.5rem; text-align: center; }
.divider { height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 1.5rem; position: relative; }
.divider span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--bg-dark); padding: 0 1rem; font-size: .7rem; color: #334155; text-transform: uppercase; }
.acc-info { 
    background: rgba(255,255,255,0.02); padding: 1rem; border-radius: 12px; border: 1px dashed rgba(255,255,255,0.1);
    font-size: .75rem; color: #64748b; line-height: 1.6;
}
.acc-info strong { color: var(--primary); }

/* ── Animations ── */
@keyframes cardAppear {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .brand-panel { display: none; }
    .form-panel { width: 100%; padding: 3rem 2rem; }
    .login-card { min-height: auto; width: 450px; }
}
