@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-deep: #050b18;
    --bg-card: rgba(15, 23, 42, 0.7);
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --accent: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --text: #f1f5f9;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

body { 
    background: var(--bg-deep); 
    color: var(--text); 
    display: flex; 
    min-height: 100vh;
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

/* LAYOUT DE LOGIN DIVIDIDO */
.login-page { display: flex; height: 100vh; width: 100%; position: fixed; top: 0; left: 0; z-index: 10000; }
.login-left { flex: 1; background: #ffffff; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-right { flex: 1.2; background: #0a0f1d; display: flex; flex-direction: column; justify-content: center; padding: 80px; color: white; position: relative; overflow: hidden; }
.login-right::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 50%); }

.login-card-new { width: 100%; max-width: 420px; background: white; padding: 40px; border-radius: 32px; }
.login-card-new h2 { font-size: 2rem; font-weight: 800; color: #1e293b; margin-bottom: 10px; letter-spacing: -1px; }
.login-card-new p { color: #64748b; margin-bottom: 35px; font-size: 1rem; }

.input-group { margin-bottom: 25px; position: relative; }
.input-group label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; color: #1e293b; text-transform: uppercase; letter-spacing: 1px; }
.input-group i { position: absolute; left: 18px; top: 44px; color: #94a3b8; font-size: 1.1rem; }
.input-group input { width: 100%; padding: 16px 16px 16px 52px; border-radius: 16px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 1rem; transition: 0.3s; color: #1e293b; }
.input-group input:focus { border-color: #3b82f6; outline: none; background: white; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }

.login-btn { width: 100%; padding: 18px; border-radius: 16px; background: #1e293b; color: white; border: none; font-weight: 800; cursor: pointer; margin-top: 15px; transition: 0.3s; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.login-btn:hover { background: #0f172a; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

.login-right h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 30px; position: relative; letter-spacing: -2px; }
.login-right p.desc { font-size: 1.2rem; color: #94a3b8; margin-bottom: 60px; line-height: 1.6; position: relative; }

.feature-list { list-style: none; position: relative; }
.feature-item { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; font-size: 1.2rem; font-weight: 600; color: #e2e8f0; }
.feature-icon { width: 36px; height: 36px; background: rgba(56, 189, 248, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); }

/* DASHBOARD */
.sidebar { width: 280px; background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(20px); padding: 40px 25px; border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 60px; display: flex; align-items: center; gap: 15px; letter-spacing: -1.5px; }
.nav-link { display: flex; align-items: center; gap: 15px; padding: 16px 20px; color: var(--text-dim); text-decoration: none; border-radius: 20px; transition: 0.4s; margin-bottom: 10px; font-weight: 600; cursor: pointer; }
.nav-link:hover, .nav-link.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: 0 15px 25px -5px var(--primary-glow); }

.main-content { flex: 1; padding: 60px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1.5px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.stat-card { background: var(--bg-card); padding: 30px; border-radius: 32px; border: 1px solid var(--glass-border); backdrop-filter: blur(15px); }
.stat-card small { color: var(--text-dim); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.5px; display: block; margin-bottom: 15px; }
.stat-card h3 { font-size: 3rem; font-weight: 800; letter-spacing: -1px; }

.table-container { background: var(--bg-card); padding: 40px; border-radius: 40px; border: 1px solid var(--glass-border); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 20px; color: var(--text-dim); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid var(--glass-border); letter-spacing: 1px; }
td { padding: 20px; border-bottom: 1px solid var(--glass-border); font-size: 1rem; color: #e2e8f0; }

.badge { padding: 8px 16px; border-radius: 14px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-active { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-expired { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; border: none; padding: 16px 30px; border-radius: 20px; cursor: pointer; font-weight: 700; transition: 0.4s; display: inline-flex; align-items: center; gap: 12px; box-shadow: 0 15px 25px -5px var(--primary-glow); font-size: 0.95rem; }
.btn-primary:hover { transform: scale(1.03) translateY(-3px); filter: brightness(1.1); box-shadow: 0 20px 35px -5px var(--primary-glow); }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); display: none; align-items: center; justify-content: center; z-index: 99999; }
.modal-content { background: #0f172a; padding: 50px; border-radius: 40px; width: 500px; border: 1px solid var(--glass-border); box-shadow: 0 0 100px rgba(56, 189, 248, 0.15); }
.form-group { margin-bottom: 30px; }
.form-group label { display: block; margin-bottom: 12px; color: var(--text-dim); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group select { width: 100%; padding: 16px; border-radius: 18px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.03); color: white; font-size: 1rem; transition: 0.3s; }
.form-group input:focus { border-color: var(--primary); outline: none; background: rgba(255,255,255,0.07); box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.15); }
