/* WIREFRAME EDA - FINAL STYLESHEET */
:root {
    --primary: #00E5FF;
    --primary-glow: rgba(0, 229, 255, 0.3);
    --bg-dark: #0B0E14;
    --bg-panel: #161B22;
    --text-main: #E6EDF3;
    --text-muted: #8B949E;
    --border: #30363D;
    --font-tech: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* GRID BACKGROUND */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: -2;
    pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* NAVBAR & LOGO HOME LINK */
header {
    border-bottom: 1px solid var(--border);
    background: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
}
nav { display: flex; justify-content: space-between; align-items: center; height: 70px; }

.logo a {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--primary);
    font-family: var(--font-tech); font-weight: bold; font-size: 1.1rem;
    transition: opacity 0.2s;
}
.logo a:hover { opacity: 0.8; }

/* HERO SECTION - FIXED LOGO OFFSET */
.hero-section {
    display: flex; justify-content: space-between; align-items: center;
    padding: 80px 0; gap: 60px; min-height: 85vh;
    position: relative; /* Quan trọng để định vị logo */
}

.hero-text { flex: 1; z-index: 2; }
.hero-text h1 { font-size: 4rem; line-height: 1; margin-bottom: 25px; text-transform: uppercase; }

/* STATS AREA */
.hero-stats { display: flex; gap: 50px; margin-top: 60px; border-top: 1px solid var(--border); padding-top: 30px; }
.stat-item { display: flex; flex-direction: column; }
.stat-item strong { font-family: var(--font-tech); font-size: 2rem; color: var(--primary); }
.stat-item span { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; }

/* AUTH FORM & WATERMARK LOGO */
.hero-auth { flex: 0 0 400px; position: relative; z-index: 2; }
.auth-wrapper {
    background: var(--bg-panel); border: 1px solid var(--border);
    padding: 40px; border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* LOGO MỜ PHÍA SAU FORM */
.logo-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-100%, -50%); /* Đẩy logo lệch sang phải so với form */
    width: 700px; height: 700px;
    background: url('/static/logo.png') no-repeat center;
    background-size: contain;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* UI COMPONENTS */
.tabs { display: flex; margin-bottom: 30px; background: rgba(0,0,0,0.2); padding: 5px; border-radius: 8px; }
.tab { flex: 1; text-align: center; padding: 10px; cursor: pointer; font-family: var(--font-tech); font-size: 0.8rem; color: var(--text-muted); }
.tab.active { background: var(--bg-dark); color: var(--primary); border-radius: 6px; }

input {
    width: 100%; background: var(--bg-dark); border: 1px solid var(--border);
    padding: 14px; color: white; border-radius: 8px; font-family: var(--font-tech); margin-top: 8px;
}
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }

.btn {
    width: 100%; background: var(--primary); color: black; border: none;
    padding: 14px; border-radius: 8px; font-weight: bold; font-family: var(--font-tech);
    cursor: pointer; transition: 0.3s; margin-top: 20px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--primary-glow); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-section { flex-direction: column; text-align: center; }
    .logo-watermark { display: none; }
    .hero-stats { justify-content: center; }
}
