﻿:root{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --panel-2:#f9fbff;
  --border:#e5edf7;
  --text:#172033;
  --muted:#6f7b91;
  --brand:#0f62fe;
  --brand-2:#3f8cff;
  --success:#0f9d58;
  --danger:#d93025;
  --warning:#f59e0b;
  --shadow:0 18px 55px rgba(15,34,68,.10);
  --shadow-soft:0 10px 30px rgba(15,34,68,.06);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(63,140,255,.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15,98,254,.10), transparent 25%),
    linear-gradient(180deg,#f5f8fc 0%, #eef3f9 100%);
  color:var(--text);
}

.auth-shell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
}

.auth-wrap{
  width:100%;
  max-width:1180px;
  min-height:720px;
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.55);
  border-radius:30px;
  box-shadow:var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
}

.auth-side{
  position:relative;
  padding:52px;
  background:
    linear-gradient(135deg, rgba(15,98,254,.96) 0%, rgba(34,115,255,.96) 45%, rgba(80,151,255,.92) 100%);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.auth-side:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.10), transparent 20%),
    radial-gradient(circle at 60% 75%, rgba(255,255,255,.08), transparent 22%);
  pointer-events:none;
}

.brand-block,
.side-footer,
.feature-stack{
  position:relative;
  z-index:2;
}

.brand-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.10);
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.2px;
}

.brand-mark{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 6px rgba(255,255,255,.12);
}

.side-title{
  margin:26px 0 14px;
  font-size:42px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:-1px;
  max-width:460px;
}

.side-copy{
  max-width:470px;
  font-size:16px;
  line-height:1.7;
  color:rgba(255,255,255,.88);
}

.feature-stack{
  display:grid;
  gap:16px;
  margin-top:34px;
}

.feature-card{
  padding:18px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.feature-card h4{
  margin:0 0 6px;
  font-size:15px;
  font-weight:700;
}

.feature-card p{
  margin:0;
  font-size:13px;
  line-height:1.6;
  color:rgba(255,255,255,.82);
}

.side-footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  font-size:13px;
  color:rgba(255,255,255,.78);
  margin-top:24px;
}

.auth-main{
  padding:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
}

.auth-card{
  width:100%;
  max-width:470px;
}

.auth-top{
  margin-bottom:24px;
}

.auth-tag{
  display:inline-block;
  padding:7px 12px;
  border-radius:999px;
  background:#eef5ff;
  color:var(--brand);
  font-size:12px;
  font-weight:700;
  letter-spacing:.3px;
  text-transform:uppercase;
}

.auth-title{
  margin:14px 0 10px;
  font-size:34px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.8px;
  color:var(--text);
}

.auth-subtitle{
  margin:0;
  font-size:15px;
  line-height:1.7;
  color:var(--muted);
}

.form-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:26px;
  box-shadow:var(--shadow-soft);
  padding:26px;
}

.form-group{
  margin-bottom:16px;
}

.form-label{
  display:block;
  margin-bottom:8px;
  font-size:13px;
  font-weight:700;
  color:#314058;
}

.input-wrap{
  position:relative;
}

.form-control{
  width:100%;
  height:56px;
  border:1px solid #dbe6f3;
  border-radius:16px;
  padding:0 16px;
  font-size:15px;
  color:var(--text);
  background:#fbfdff;
  outline:none;
  transition:all .2s ease;
}

.form-control:focus{
  border-color:#86b7ff;
  background:#fff;
  box-shadow:0 0 0 4px rgba(15,98,254,.10);
}

.form-control::placeholder{
  color:#97a4b8;
}

.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  border-radius:16px;
  font-weight:700;
  font-size:15px;
  transition:all .2s ease;
}

.btn-primary{
  width:100%;
  height:56px;
  background:linear-gradient(135deg,var(--brand) 0%, var(--brand-2) 100%);
  color:#fff;
  box-shadow:0 12px 28px rgba(15,98,254,.24);
}

.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px rgba(15,98,254,.28);
}

.btn-secondary{
  background:#f4f8ff;
  color:var(--brand);
  border:1px solid #dce9ff;
  padding:12px 16px;
}

.btn-secondary:hover{
  background:#eaf3ff;
}

.btn-linkish{
  background:none;
  color:var(--brand);
  padding:0;
  font-size:14px;
  font-weight:700;
}

.row-inline{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}

.check-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0 18px;
  color:var(--muted);
  font-size:14px;
}

.check-row input{
  width:18px;
  height:18px;
  accent-color:var(--brand);
}

.auth-note{
  margin-top:18px;
  font-size:13px;
  color:var(--muted);
  text-align:center;
  line-height:1.6;
}

.alert{
  border-radius:16px;
  padding:14px 16px;
  margin-bottom:18px;
  font-size:14px;
  line-height:1.55;
  border:1px solid transparent;
}

.alert-danger{
  background:#fff4f4;
  color:#9f1f18;
  border-color:#ffd9d7;
}

.alert-warning{
  background:#fff9ee;
  color:#8a5a00;
  border-color:#ffe1a3;
}

.alert-success{
  background:#f2fcf5;
  color:#146c3c;
  border-color:#cfeeda;
}

.countdown{
  font-weight:800;
  letter-spacing:.2px;
}

.verify-code-wrap{
  display:flex;
  gap:10px;
  justify-content:space-between;
  margin:12px 0 18px;
}

.verify-code{
  width:100%;
  max-width:62px;
  height:64px;
  text-align:center;
  font-size:24px;
  font-weight:800;
  border:1px solid #dbe6f3;
  border-radius:18px;
  background:#fbfdff;
  outline:none;
  transition:all .2s ease;
}

.verify-code:focus{
  border-color:#86b7ff;
  background:#fff;
  box-shadow:0 0 0 4px rgba(15,98,254,.10);
}

.verify-meta{
  margin:16px 0 0;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}

.verify-help{
  font-size:14px;
  color:var(--muted);
  line-height:1.6;
}

.verify-help strong{
  color:var(--text);
}

.small-muted{
  font-size:12px;
  color:#91a0b5;
}

.divider{
  height:1px;
  background:linear-gradient(90deg, transparent 0%, #e5edf7 20%, #e5edf7 80%, transparent 100%);
  margin:20px 0;
}

.status-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#f6faff;
  border:1px solid #deebff;
  color:#295aa6;
  font-size:12px;
  font-weight:700;
}

.status-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#2d77ff;
}

.auth-footer-links{
  margin-top:18px;
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  font-size:13px;
}

.auth-footer-links a{
  color:#7a8aa2;
  text-decoration:none;
}

.auth-footer-links a:hover{
  color:var(--brand);
}

@media (max-width: 980px){
  .auth-wrap{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .auth-side{
    padding:34px 26px;
  }
  .auth-main{
    padding:26px;
  }
  .side-title{
    font-size:34px;
  }
}

@media (max-width: 560px){
  .auth-shell{
    padding:14px;
  }
  .auth-main,
  .auth-side{
    padding:22px;
  }
  .form-card{
    padding:20px;
    border-radius:22px;
  }
  .auth-title{
    font-size:28px;
  }
  .verify-code-wrap{
    gap:8px;
  }
  .verify-code{
    max-width:48px;
    height:56px;
    font-size:22px;
    border-radius:14px;
  }
}
.page-shell{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(63,140,255,.10), transparent 25%),
    linear-gradient(180deg,#f5f8fc 0%, #eef3f9 100%);
  padding:28px;
}

.page-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:24px;
  flex-wrap:wrap;
}

.page-title{
  margin:0;
  font-size:34px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.8px;
  color:#172033;
}

.page-subtitle{
  margin:8px 0 0;
  color:#6f7b91;
  font-size:15px;
  line-height:1.6;
}

.dashboard-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.dashboard-grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:18px;
}

.dashboard-grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.stat-card,
.panel-card{
  background:#fff;
  border:1px solid #e5edf7;
  border-radius:22px;
  box-shadow:0 10px 30px rgba(15,34,68,.06);
}

.stat-card{
  padding:22px;
  position:relative;
  overflow:hidden;
}

.stat-card:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(135deg,#0f62fe 0%, #3f8cff 100%);
}

.stat-label{
  color:#6f7b91;
  font-size:13px;
  font-weight:700;
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.3px;
}

.stat-value{
  font-size:34px;
  font-weight:800;
  color:#172033;
  line-height:1.1;
}

.stat-meta{
  margin-top:10px;
  color:#8a97aa;
  font-size:13px;
}

.panel-card{
  padding:24px;
}

.panel-title{
  margin:0 0 14px;
  font-size:22px;
  line-height:1.2;
  font-weight:800;
  color:#172033;
}

.panel-copy{
  margin:0;
  font-size:15px;
  line-height:1.7;
  color:#6f7b91;
}

.quick-links{
  display:grid;
  gap:12px;
  margin-top:8px;
}

.quick-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border:1px solid #e6eef9;
  background:#fbfdff;
  border-radius:16px;
  text-decoration:none;
  color:#172033;
  font-weight:700;
  transition:all .2s ease;
}

.quick-link:hover{
  border-color:#cfe0fb;
  background:#f4f8ff;
  transform:translateY(-1px);
}

.quick-link small{
  display:block;
  margin-top:4px;
  color:#7b8aa1;
  font-size:12px;
  font-weight:500;
}

.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#eef5ff;
  color:#0f62fe;
  font-size:12px;
  font-weight:700;
  border:1px solid #d9e8ff;
}

.system-list{
  display:grid;
  gap:12px;
  margin-top:12px;
}

.system-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  background:#fbfdff;
  border:1px solid #e6eef9;
}

.system-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#0f9d58;
  margin-top:5px;
  flex:0 0 auto;
}

.system-item strong{
  display:block;
  margin-bottom:4px;
  color:#172033;
}

.system-item span{
  color:#6f7b91;
  font-size:14px;
  line-height:1.6;
}

@media (max-width: 1100px){
  .dashboard-grid-4{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width: 760px){
  .page-shell{
    padding:18px;
  }

  .dashboard-grid-4,
  .dashboard-grid-2{
    grid-template-columns:1fr;
  }

  .page-title{
    font-size:28px;
  }

  .stat-value{
    font-size:30px;
  }
}
/* =============================
   TOP NAV
============================= */

.topnav-shell{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #e6eef9;
}

.topnav-wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:14px 28px;
}

.topnav-left{
  display:flex;
  align-items:center;
  gap:24px;
}

.topnav-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:16px;
  color:#172033;
  text-decoration:none;
}

.brand-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:linear-gradient(135deg,#0f62fe,#3f8cff);
}

.topnav-links{
  display:flex;
  gap:18px;
}

.topnav-link{
  font-size:14px;
  font-weight:600;
  color:#5f6f86;
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  transition:.2s ease;
}

.topnav-link:hover{
  background:#f2f6fc;
  color:#172033;
}

.topnav-right{
  display:flex;
  align-items:center;
  gap:16px;
}

.topnav-user{
  display:flex;
  align-items:center;
  gap:10px;
}

.user-avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  background:linear-gradient(135deg,#0f62fe,#3f8cff);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}

.user-meta{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.user-name{
  font-size:13px;
  font-weight:700;
  color:#172033;
}

.user-role{
  font-size:11px;
  color:#8a97aa;
}

.btn-ghost{
  background:transparent;
  border:1px solid #dbe5f2;
  color:#172033;
  padding:8px 14px;
  border-radius:10px;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  transition:.2s ease;
}

.btn-ghost:hover{
  background:#f4f8ff;
  border-color:#cfe0fb;
}

/* Mobile */
@media (max-width: 900px){
  .topnav-links{
    display:none;
  }

  .topnav-wrap{
    padding:12px 18px;
  }
}