/* style.css - Auth & Dashboard */
:root {
    --primary: #1a73e8;
    --primary-dark: #0b3a8f;
    --bg: #f0f4f9;
    --text: #202124;
    --text-secondary: #5f6368;
    --border: #dadce0;
    --error: #d93025;
    --success: #188038;
    --sidebar-bg: #1a1f2e;
    --sidebar-text: #b0b3b8;
    --radius: 12px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: var(--bg);
    min-height: 100vh;
}

/* Auth */
.auth-wrapper { display:flex; width:100%; min-height:100vh; }
.auth-left {
    flex:0 0 35%;
    background: linear-gradient(135deg, #1a73e8 0%, #0b3a8f 100%);
    color:#fff;
    display:flex; flex-direction:column; justify-content:center; align-items:center;
    padding:40px 30px; text-align:center; position:relative; overflow:hidden;
}
.auth-left::before, .auth-left::after { content:''; position:absolute; border-radius:50%; background:rgba(255,255,255,0.06); pointer-events:none; }
.auth-left::before { width:250px; height:250px; top:-60px; right:-80px; }
.auth-left::after { width:350px; height:350px; bottom:-120px; left:-100px; }
.logo-white { width:150px; height:auto; margin-bottom:20px; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,0.2); }
.auth-left h2 { font-size:26px; font-weight:600; letter-spacing:0.5px; margin-bottom:10px; }
.auth-left p { font-size:14px; opacity:0.85; max-width:280px; line-height:1.5; }
.auth-right { flex:1; display:flex; justify-content:center; align-items:center; padding:40px; background:#fff; }
.form-container { width:100%; max-width:420px; }
.form-container h1 { font-size:24px; font-weight:600; color:var(--text); margin-bottom:6px; }
.subtitle { color:var(--text-secondary); font-size:14px; margin-bottom:24px; }
.input-group { margin-bottom:16px; }
.input-group input {
    width:100%; padding:14px 20px; font-size:15px; border:2px solid var(--border);
    border-radius:50px; outline:none; transition:all 0.3s; background:#fff;
}
.input-group input:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(26,115,232,0.15); }
.btn {
    display:inline-flex; align-items:center; justify-content:center; width:100%;
    padding:14px 24px; font-size:15px; font-weight:600; border:none; border-radius:50px;
    cursor:pointer; transition:all 0.3s; text-decoration:none; color:#fff; background:var(--primary);
    margin-bottom:10px; letter-spacing:0.3px;
}
.btn:hover { background:var(--primary-dark); box-shadow:0 6px 16px rgba(26,115,232,0.4); transform:translateY(-1px); }
.btn-outline { background:transparent; border:2px solid var(--primary); color:var(--primary); }
.btn-outline:hover { background:rgba(26,115,232,0.05); transform:translateY(-1px); }
.link { color:var(--primary); text-decoration:none; font-weight:500; font-size:13px; display:inline-block; margin:4px 0; cursor:pointer; }
.link:hover { text-decoration:underline; }
.error-msg { color:var(--error); font-size:12px; margin-top:6px; display:none; }
.success-msg { color:var(--success); font-size:13px; margin-top:12px; display:none; }
.hidden { display:none; }
.cf-turnstile { display:flex; justify-content:center; margin:12px 0; }

/* Dashboard */
.dashboard-container { display:flex; min-height:100vh; }
.sidebar {
    width:260px; background:var(--sidebar-bg); color:var(--sidebar-text);
    display:flex; flex-direction:column; padding:20px 0; position:fixed; top:0; left:0; bottom:0; z-index:100;
}
.sidebar-logo { text-align:center; padding:0 20px 20px; border-bottom:1px solid rgba(255,255,255,0.1); }
.sidebar-logo img { width:70px; border-radius:10px; margin-bottom:8px; }
.sidebar-logo h3 { font-size:16px; color:#fff; letter-spacing:1px; }
.sidebar nav { flex:1; padding:20px 0; overflow-y:auto; }
.nav-item {
    display:block; padding:12px 20px; color:var(--sidebar-text); text-decoration:none;
    font-size:14px; transition:background 0.2s, color 0.2s; border-left:3px solid transparent;
    cursor:pointer; background:none; border:none; text-align:left; width:100%;
}
.nav-item:hover { background:rgba(255,255,255,0.05); color:#fff; }
.nav-item.active { background:rgba(255,255,255,0.1); color:#fff; border-left-color:var(--primary); }
.sidebar-bottom { padding:20px; border-top:1px solid rgba(255,255,255,0.1); }
.nav-item.logout { color:#ff6b6b; }
.main-content { flex:1; margin-left:260px; display:flex; flex-direction:column; }
.top-bar { background:#fff; padding:20px 30px; display:flex; justify-content:space-between; align-items:center; box-shadow:0 2px 4px rgba(0,0,0,0.05); flex-wrap:wrap; gap:10px; }
.top-bar h2 { font-size:20px; color:var(--text); }
.user-info { font-size:14px; color:var(--text-secondary); }
.content-area { padding:30px; flex:1; }
.card { background:#fff; border-radius:var(--radius); box-shadow:0 4px 15px rgba(0,0,0,0.05); padding:25px; margin-bottom:20px; }
.card h3 { font-size:18px; color:var(--text); margin-bottom:15px; }
.data-list { list-style:none; }
.data-list li { padding:10px 0; border-bottom:1px solid #f0f0f0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.data-list li:last-child { border-bottom:none; }
.otp-container { display:flex; gap:8px; justify-content:center; margin:15px 0; }
.otp-input { width:45px; height:45px; text-align:center; font-size:18px; border:1px solid var(--border); border-radius:8px; outline:none; }
.otp-input:focus { border-color:var(--primary); box-shadow:0 0 0 2px rgba(26,115,232,0.2); }
.modal-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); display:none; justify-content:center; align-items:center; z-index:2000; }
.modal-overlay.active { display:flex; }
.modal-box { background:#fff; border-radius:12px; padding:25px; max-width:400px; width:90%; text-align:center; }
.modal-buttons { display:flex; gap:10px; justify-content:center; margin-top:20px; }

/* Google & Yahoo Official Buttons */
.google-official-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:10px;
    background:#fff; color:#3c4043; font-family:'Roboto', Arial, sans-serif; font-size:14px; font-weight:500;
    padding:0 16px; height:40px; min-width:230px; border:1px solid #dadce0; border-radius:20px;
    cursor:pointer; box-shadow:0 1px 2px rgba(60,64,67,0.3);
}
.google-official-btn:hover { background:#f8f9fa; }
.yahoo-official-btn {
    display:inline-flex; align-items:center; background:#6001d2; color:#fff; font-family:'Roboto', Arial, sans-serif;
    font-size:14px; font-weight:500; padding:0 12px; height:40px; min-width:230px; border-radius:20px; border:none; cursor:pointer;
}
.yahoo-official-btn:hover { background:#4a00a0; }
.yahoo-icon-wrapper { display:flex; align-items:center; justify-content:center; width:18px; height:18px; margin-right:24px; }
.yahoo-icon-wrapper svg { width:100%; height:100%; fill:#fff; }

@media (max-width:900px) {
    .auth-wrapper { flex-direction:column; }
    .auth-left { flex:0 0 auto; padding:30px 20px; }
    .logo-white { width:90px; }
    .auth-left h2 { font-size:20px; }
    .auth-right { padding:30px 20px; }
    .dashboard-container { flex-direction:column; }
    .sidebar { position:sticky; width:100%; height:auto; flex-direction:row; align-items:center; padding:10px 0; overflow-x:auto; white-space:nowrap; }
    .sidebar-logo { padding:0 15px; border-bottom:none; display:flex; align-items:center; gap:10px; }
    .sidebar-logo img { width:40px; margin-bottom:0; }
    .sidebar-logo h3 { font-size:14px; }
    .sidebar nav { padding:0; display:flex; overflow-x:auto; flex:1; }
    .nav-item { padding:10px 15px; border-left:none; border-bottom:2px solid transparent; display:inline-block; }
    .nav-item.active { border-bottom-color:var(--primary); border-left:none; }
    .sidebar-bottom { padding:0 15px; border-top:none; }
    .main-content { margin-left:0; }
    .top-bar { padding:15px; }
    .content-area { padding:15px; }
    .card { padding:15px; }
    .otp-input { width:40px; height:40px; font-size:16px; }
}