/* ================================================================
   PassOne Platform — Main Stylesheet
   Design: Dark sidebar + clean light content area
   ================================================================ */

:root {
  --sidebar-w:        56px;
  --sidebar-w-open:   220px;
  --sidebar-bg:       #0f1117;
  --sidebar-border:   #1e2130;
  --sidebar-text:     #8b92a5;
  --sidebar-hover:    #1a1d2e;
  --sidebar-active:   #2563eb;
  --sidebar-active-bg:#1e2a4a;

  --topbar-h:         52px;
  --topbar-bg:        #ffffff;
  --topbar-border:    #e8ecf0;

  --bg:               #f4f6fa;
  --surface:          #ffffff;
  --surface-2:        #f8fafc;
  --border:           #e8ecf0;
  --border-2:         #d1d8e0;

  --text-primary:     #0f1117;
  --text-secondary:   #64748b;
  --text-muted:       #94a3b8;

  --blue:             #2563eb;
  --blue-light:       #eff6ff;
  --blue-hover:       #1d4ed8;
  --green:            #10b981;
  --green-light:      #ecfdf5;
  --red:              #ef4444;
  --red-light:        #fef2f2;
  --yellow:           #f59e0b;
  --yellow-light:     #fffbeb;
  --purple:           #8b5cf6;
  --purple-light:     #f5f3ff;

  --radius:           8px;
  --radius-sm:        5px;
  --radius-lg:        12px;
  --shadow:           0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:        0 4px 12px rgba(0,0,0,.10);

  --transition:       0.2s ease;
  --transition-slow:  0.35s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-size: 14px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ================================================================
   LAYOUT
   ================================================================ */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition-slow);
  overflow: hidden;
}
.sidebar.open {
  width: var(--sidebar-w-open);
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
}
.sidebar-logo .logo-icon {
  width: 28px; height: 28px;
  background: var(--blue);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: -0.5px;
}
.sidebar-logo .logo-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.sidebar.open .logo-text { opacity: 1; }

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section-label {
  padding: 12px 16px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3a4060;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.sidebar.open .nav-section-label { opacity: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  margin: 1px 6px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  position: relative;
}
.nav-item:hover {
  background: var(--sidebar-hover);
  color: #c9cee0;
  text-decoration: none;
}
.nav-item.active {
  background: var(--sidebar-active-bg);
  color: #fff;
}
.nav-item.active .nav-icon { color: var(--sidebar-active); }

.nav-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  color: var(--sidebar-text);
  transition: color var(--transition);
}
.nav-item:hover .nav-icon { color: #c9cee0; }

.nav-label {
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  flex: 1;
}
.sidebar.open .nav-label {
  opacity: 1;
  pointer-events: auto;
}

.nav-badge {
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity var(--transition-slow);
  flex-shrink: 0;
}
.sidebar.open .nav-badge { opacity: 1; }

/* Active indicator */
.nav-item.active::before {
  content: ;
  position: absolute;
  left: -6px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}

/* Sidebar footer */
.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
  padding: 8px 0;
  flex-shrink: 0;
}

/* Toggle button */
.sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  margin: 1px 6px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: none;
  width: calc(100% - 12px);
  transition: background var(--transition), color var(--transition);
}
.sidebar-toggle:hover {
  background: var(--sidebar-hover);
  color: #c9cee0;
}
.toggle-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: transform var(--transition-slow);
}
.sidebar.open .toggle-icon { transform: rotate(180deg); }
.toggle-label {
  font-size: 12px; font-weight: 500;
  opacity: 0; transition: opacity var(--transition-slow);
}
.sidebar.open .toggle-label { opacity: 1; }

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  transition: margin-left var(--transition-slow);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.sidebar.open ~ .main {
  margin-left: var(--sidebar-w-open);
}

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar {
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky; top: 0;
  z-index: 50;
  flex-shrink: 0;
}
.topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-title .breadcrumb-sep {
  color: var(--text-muted);
  font-weight: 400;
}
.topbar-title .breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Search in topbar */
.topbar-search {
  position: relative;
}
.topbar-search input {
  width: 220px;
  height: 32px;
  padding: 0 10px 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), width var(--transition);
}
.topbar-search input:focus {
  border-color: var(--blue);
  width: 280px;
  background: #fff;
}
.topbar-search .search-icon {
  position: absolute;
  left: 9px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
  pointer-events: none;
}

/* Topbar actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition);
  position: relative;
}
.topbar-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Avatar */
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.user-avatar:hover { border-color: var(--blue); }

/* ================================================================
   CONTENT AREA
   ================================================================ */
.content {
  flex: 1;
  padding: 20px;
  overflow-x: hidden;
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.page-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.page-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-body { padding: 18px; }

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.stat-delta {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.stat-delta.up { color: var(--green); }
.stat-delta.down { color: var(--red); }
.stat-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 4px;
}

/* ================================================================
   TABLE
   ================================================================ */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table-toolbar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
}
.table-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  white-space: nowrap;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
}
table.data-table thead th {
  padding: 9px 12px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
table.data-table tbody tr:last-child { border-bottom: none; }
table.data-table tbody tr:hover { background: var(--surface-2); }
table.data-table tbody td {
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-primary);
  vertical-align: middle;
}

/* ================================================================
   BADGES
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-blue   { background: var(--blue-light);   color: var(--blue); }
.badge-green  { background: var(--green-light);  color: var(--green); }
.badge-red    { background: var(--red-light);    color: var(--red); }
.badge-yellow { background: var(--yellow-light); color: var(--yellow); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-gray   { background: var(--surface-2);    color: var(--text-muted); border: 1px solid var(--border); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 5px 10px; font-size: 11.5px; }
.btn-xs { padding: 3px 8px;  font-size: 11px; }
.btn-icon { padding: 7px; }
.btn-icon.btn-sm { padding: 5px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border-2);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--text-primary); }

.btn-danger {
  background: var(--red-light);
  color: var(--red);
  border-color: transparent;
}
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-success {
  background: var(--green-light);
  color: var(--green);
  border-color: transparent;
}
.btn-success:hover { background: var(--green); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text-primary); }

/* ================================================================
   FORM ELEMENTS
   ================================================================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { height: auto; padding: 9px 11px; resize: vertical; }
select.form-control { cursor: pointer; }

/* Filters row */
.filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border-2);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  background: var(--surface);
  color: var(--text-secondary);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Search field */
.search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.search-field i {
  position: absolute;
  left: 9px;
  color: var(--text-muted);
  font-size: 12px;
  pointer-events: none;
}
.search-field input {
  height: 32px;
  padding: 0 10px 0 30px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition);
  width: 200px;
}
.search-field input:focus {
  border-color: var(--blue);
  width: 260px;
}

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(10px);
  transition: transform var(--transition);
  overflow: hidden;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-box.modal-lg { max-width: 760px; }
.modal-box.modal-xl { max-width: 1000px; }

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.modal-close {
  width: 28px; height: 28px;
  border: none; background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--surface-2); color: var(--text-primary); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ================================================================
   CHECKBOX
   ================================================================ */
.checkbox-cell input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 40px; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 13px; }

/* ================================================================
   TOOLTIP
   ================================================================ */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: #1e2130;
  color: #e2e8f0;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 300;
}
[data-tip]:hover::after { opacity: 1; }

/* ================================================================
   PRELOADER
   ================================================================ */
.preloader {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.7);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.preloader.hidden { display: none; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ================================================================
   UTILS
   ================================================================ */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }  .gap-2 { gap: 8px; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }  .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }  .mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 11.5px; }
.text-xs     { font-size: 10.5px; }
.text-right  { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================================================================
   AUTH PAGE
   ================================================================ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sidebar-bg);
  padding: 20px;
}
.auth-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-logo .logo-mark {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff;
}
.auth-logo .logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.auth-logo .logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}
.auth-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.auth-input-wrap {
  position: relative;
  margin-bottom: 12px;
}
.auth-input-wrap i.input-icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.auth-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 38px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
}
.auth-input-wrap .pass-toggle {
  position: absolute;
  right: 11px; top: 50%;
  transform: translateY(-50%);
  border: none; background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
}
.auth-input-wrap .pass-toggle:hover { color: var(--text-primary); }
.auth-btn {
  width: 100%;
  height: 42px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.auth-btn:hover { background: var(--blue-hover); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-error {
  background: var(--red-light);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 12.5px;
  margin-bottom: 12px;
  display: none;
}
.auth-error.show { display: block; }

/* Code input */
.code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}
.code-inputs input {
  width: 52px; height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  outline: none;
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.code-inputs input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: #fff;
}
.code-inputs input.filled { border-color: var(--blue); background: var(--blue-light); }

/* Step transition */
.auth-step { display: none; }
.auth-step.active { display: block; }
