/* Smart Marketing Agent — Halaman Login (dipakai login.php) */
:root {
    --brand-1: #0f766e;
    --brand-2: #059669;
    --grad-primary: linear-gradient(135deg, #0f766e 0%, #059669 100%);
    --accent: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(15, 118, 110, 0.12);
    --shadow-lg: 0 20px 50px rgba(15, 118, 110, 0.18);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: #fff;
}

/* ---------- Layout split screen ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
}

/* Panel branding (kiri) */
.brand-panel {
    flex: 1 1 50%;
    background: var(--grad-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
}
.brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 400px at 15% 20%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(500px 350px at 85% 75%, rgba(255, 255, 255, 0.10), transparent 60%);
    pointer-events: none;
}
.brand-panel .container-inner { position: relative; z-index: 2; max-width: 480px; }

.brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
}
.brand-panel h1 { font-weight: 700; font-size: 2rem; }
.brand-panel .brand-tagline { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }

.brand-features {
    list-style: none;
    padding: 0;
    margin: 2.25rem 0 0;
}
.brand-features li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1rem;
    margin-bottom: .75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    font-weight: 500;
}
.brand-features li i {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}
.brand-panel .brand-footer {
    margin-top: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: .85rem;
}

/* Panel form (kanan) */
.form-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: #fff;
}
.login-card {
    width: 100%;
    max-width: 400px;
}
.login-card .form-heading { font-weight: 700; font-size: 1.6rem; }
.login-card .form-subtitle { color: var(--muted); }

/* Input group */
.input-group-text {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-right: none;
    color: var(--muted);
}
.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0 !important;
    padding: 0.7rem 0.9rem;
}
.input-group .form-control:focus {
    border-color: var(--brand-1);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2);
}
.input-group .btn-password-toggle {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 10px 10px 0 !important;
    color: var(--muted);
}
.input-group .btn-password-toggle:hover { color: var(--brand-1); }
.form-label { font-weight: 600; font-size: .9rem; }

/* Tombol submit */
.btn-login {
    background: var(--grad-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .75rem 1rem;
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    color: #fff;
}
.btn-login:active { transform: translateY(0); }

/* Alert */
.alert { border-radius: 10px; border: none; }

/* Tautan balik ke beranda */
.back-home {
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s ease;
}
.back-home:hover { color: var(--brand-1); }

/* Responsive: tumpuk di layar kecil */
@media (max-width: 991.98px) {
    .login-page { flex-direction: column; }
    .brand-panel { padding: 2.5rem 1.5rem; }
    .brand-panel h1 { font-size: 1.6rem; }
    .brand-features { margin-top: 1.5rem; }
    .brand-footer { display: none; }
    .form-panel { padding: 2rem 1.5rem 2.5rem 1.5rem; }
}
