/* assets/css/agent-auth.css — shared theme for the agent portal,
   matching the Google-Admin-Console look used in /admin */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --g-blue: #1a73e8;
    --g-blue-dark: #1765cc;
    --g-blue-tint: #e8f0fe;
    --g-red: #ea4335;
    --g-red-tint: #fce8e6;
    --g-yellow: #f9ab00;
    --g-green: #1e8e3e;
    --g-green-tint: #e6f4ea;
    --ink: #202124;
    --muted: #5f6368;
    --bg: #f6f8fc;
    --card: #ffffff;
    --border: #dadce0;
    --shadow-soft: 0 1px 2px rgba(60,64,67,0.16), 0 1px 3px rgba(60,64,67,0.08);
    --shadow-lift: 0 1px 3px rgba(60,64,67,0.24), 0 4px 8px rgba(60,64,67,0.14);
}
body {
    font-family: 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lift);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    animation: fadeSlideIn 0.35s ease;
}
.agent-home-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.agent-home-link:hover { color: var(--g-blue); }
.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.auth-brand .logo { font-size: 28px; color: var(--g-blue); }
.auth-brand .name { font-size: 20px; font-weight: 500; }
.auth-brand .sub { font-size: 13px; color: var(--muted); }

.auth-card h1 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.auth-card .subtitle { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--g-blue);
    box-shadow: 0 0 0 3px var(--g-blue-tint);
}
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.otp-input {
    text-align: center;
    font-size: 28px !important;
    letter-spacing: 10px;
    font-weight: 700;
    padding: 14px !important;
}

.btn-block {
    width: 100%;
    background: var(--g-blue);
    color: white;
    border: none;
    padding: 13px;
    border-radius: 24px;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}
.btn-block:hover { background: var(--g-blue-dark); box-shadow: var(--shadow-lift); }
.btn-block:disabled { background: #c6c9cc; cursor: not-allowed; box-shadow: none; }

.btn-link {
    background: none;
    border: none;
    color: var(--g-blue);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}
.btn-link:hover { text-decoration: underline; }
.btn-link:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
}
.alert-error { background: var(--g-red-tint); color: #a50e0e; }
.alert-success { background: var(--g-green-tint); color: #0d652d; }
.alert-info { background: var(--g-blue-tint); color: #174ea6; }

.auth-footer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--g-blue); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending_verification, .status-pending_kya, .status-kya_submitted { background: #fef7e0; color: #9a6a00; }
.status-active { background: var(--g-green-tint); color: #0d652d; }
.status-suspended, .status-rejected { background: var(--g-red-tint); color: #a50e0e; }

@media (max-width: 480px) {
    .auth-card { padding: 28px 22px; }
}

/* ===== MOBILE BOTTOM NAV BAR (app-like) ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 900;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.bottom-nav-inner { display: flex; justify-content: space-around; align-items: center; }
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--muted); text-decoration: none; font-size: 10.5px; font-weight: 500;
    padding: 4px 8px; position: relative; min-width: 54px;
}
.bottom-nav-item i { font-size: 19px; }
.bottom-nav-item.active { color: var(--g-blue); }
.bottom-nav-badge {
    position: absolute; top: -1px; right: 6px;
    background: var(--g-red); color: #fff; font-size: 9px; font-weight: 700;
    border-radius: 10px; min-width: 15px; height: 15px; line-height: 15px; text-align: center;
    padding: 0 3px;
}
@media (max-width: 700px) {
    .bottom-nav { display: block; }
    body { padding-bottom: 72px !important; }
}

/* ===== NOTIFICATION BELL (top bar) ===== */
.notif-bell { position: relative; background: none; border: 1px solid var(--border); border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 15px; }
.notif-bell:hover { background: #f1f3f4; }
.notif-badge { position: absolute; top: -3px; right: -3px; background: var(--g-red); color: #fff; font-size: 9px; font-weight: 700; border-radius: 10px; min-width: 15px; height: 15px; line-height: 15px; text-align: center; padding: 0 3px; }
.notif-panel {
    display: none; position: absolute; top: 46px; right: 0; width: 300px; max-height: 380px; overflow-y: auto;
    background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lift);
    z-index: 1000;
}
.notif-panel.open { display: block; }
.notif-item { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; line-height: 1.5; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--g-blue-tint); }
.notif-item .time { color: var(--muted); font-size: 11px; margin-top: 3px; }
.notif-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 12.5px; }
