/* ========== RESET & VARIABLES ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f0f14;
    --bg-card: #1a1a24;
    --bg-card-hover: #22222f;
    --bg-input: #14141e;
    --border: #2a2a3a;
    --border-light: #333346;
    --text: #e8e8ef;
    --text-muted: #8888a0;
    --text-dim: #55556a;
    --accent: #9b6dff;
    --accent-soft: rgba(155, 109, 255, 0.12);
    --accent-glow: rgba(155, 109, 255, 0.25);
    --pink: #ff6b9d;
    --pink-soft: rgba(255, 107, 157, 0.12);
    --green: #4ade80;
    --green-soft: rgba(74, 222, 128, 0.12);
    --red: #f87171;
    --red-soft: rgba(248, 113, 113, 0.12);
    --yellow: #fbbf24;
    --yellow-soft: rgba(251, 191, 36, 0.12);
    --blue: #60a5fa;
    --sidebar-w: 240px;
    --header-h: 56px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.3);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cormorant Garamond', serif;
}

html { font-size: 15px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ========== LOGIN SCREEN ========== */
.lock-screen {
    position: fixed; inset: 0;
    background: var(--bg);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; overflow: hidden;
}
.lock-bg-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; }
.shape-1 { width: 400px; height: 400px; background: var(--accent); top: -100px; right: -100px; animation: float1 8s ease-in-out infinite; }
.shape-2 { width: 300px; height: 300px; background: var(--pink); bottom: -50px; left: -50px; animation: float2 10s ease-in-out infinite; }
.shape-3 { width: 200px; height: 200px; background: var(--blue); top: 50%; left: 50%; animation: float3 12s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px,40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-40px); } }
@keyframes float3 { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-30%,-30%); } }
.lock-container {
    position: relative; z-index: 1;
    background: rgba(26, 26, 36, 0.8);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 48px 40px;
    text-align: center; max-width: 380px; width: 90%;
    box-shadow: var(--shadow);
}
.lock-logo { font-size: 3rem; margin-bottom: 16px; }
.lock-title { font-family: var(--font-display); font-size: 2rem; color: var(--text); font-weight: 500; letter-spacing: 1px; margin-bottom: 4px; }
.lock-subtitle { color: var(--text-muted); font-size: 0.9rem; font-weight: 300; margin-bottom: 32px; }
.code-input-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.code-input { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.95rem; color: var(--text); text-align: center; width: 100%; outline: none; transition: border-color 0.3s, box-shadow 0.3s; font-family: var(--font); }
.code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.code-input::placeholder { color: var(--text-dim); }
.unlock-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--accent), #7c4dff); border: none; padding: 14px 32px; font-size: 0.95rem; color: #fff; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.3s; font-family: var(--font); font-weight: 500; }
.unlock-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }
.error-message { color: var(--red); margin-top: 16px; font-size: 0.85rem; min-height: 20px; }
.lock-screen.unlocking { animation: unlockFade 0.6s ease forwards; }
@keyframes unlockFade { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05); pointer-events: none; } }
.shake { animation: shake 0.4s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ========== ANIMATIONS ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { transform: scale(0.95) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
