/* ==========================================================================
   AZRAIL-LABA ENTERPRISE VPN PANEL - DESIGN SYSTEM v2.4
   ========================================================================== */

:root {
  --bg-main: #070c14;
  --bg-sidebar: #0b111c;
  --bg-topbar: #080e18;
  --bg-card: #0d1524;
  --bg-card-hover: #10192b;
  --bg-card-inner: #121c2e;
  --bg-input: #09101d;
  --border: rgba(255, 255, 255, 0.07);
  --border-card: #17233a;
  --border-focus: #00d2ff;
  
  --cyan: #00d2ff;
  --cyan-hover: #38bdf8;
  --cyan-dim: rgba(0, 210, 255, 0.12);
  --cyan-glow: rgba(0, 210, 255, 0.25);
  
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.12);
  
  --purple: #818cf8;
  --purple-dim: rgba(129, 140, 248, 0.12);
  
  --red: #f43f5e;
  --red-dim: rgba(244, 63, 94, 0.12);
  
  --text-main: #f8fafc;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --sidebar-w: 260px;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.az-sidebar {
  width: var(--sidebar-w);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.25s ease;
}

.az-brand {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.az-brand-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 16px;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.az-brand-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}
.az-brand-text span {
  color: var(--cyan);
  margin-left: 4px;
}

.az-brand-badge {
  display: inline-block;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
  letter-spacing: 0.5px;
}

.az-sidebar-nav {
  flex: 1;
  padding: 20px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.az-nav-header {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 14px 10px 6px 10px;
}

.az-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.az-nav-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.az-nav-item-left i {
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.az-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.az-nav-item.active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.az-nav-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: 12px;
}
.az-nav-item.active .az-nav-badge {
  background: rgba(0, 210, 255, 0.25);
  color: var(--cyan);
}

.az-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: #080d16;
}

.az-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.az-avatar-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--cyan);
  color: #040810;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.3);
}

.az-user-meta {
  flex: 1;
  min-width: 0;
}
.az-user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.az-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.az-badge-role {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyan);
  text-transform: uppercase;
}
.az-status-online {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.az-dot-green {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--green);
}

.az-btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}
.az-btn-logout:hover {
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.3);
  background: var(--red-dim);
}

/* ==========================================================================
   MAIN LAYOUT & TOPBAR
   ========================================================================== */

.az-main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-w));
  box-sizing: border-box;
}

.az-topbar {
  height: 64px;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 90;
}

.az-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.az-cluster-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.az-cluster-pill strong {
  color: #fff;
}

.az-uptime-text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}
.az-uptime-text span {
  color: var(--green);
}

.az-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.az-pill-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.az-btn-mtr-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.az-btn-mtr-top:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.3);
  color: var(--cyan);
}

.az-bell-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.az-bell-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan);
}

.az-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #172439;
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.az-page-body {
  flex: 1;
  padding: 28px 0;
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
}

/* ==========================================================================
   CARDS & COMMON UI ELEMENTS
   ========================================================================== */

.az-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
}

.az-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.az-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}
.az-card-title i {
  color: var(--cyan);
}

.az-pill-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-blue {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--cyan);
}
.badge-green {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--green);
}
.badge-purple {
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: var(--purple);
}
.badge-gray {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* Page Header */
.az-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 20px;
}

.az-page-title-group h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.az-page-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.az-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.az-btn-cyan {
  background: var(--cyan);
  color: #040810;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.25);
  text-decoration: none;
}
.az-btn-cyan:hover {
  background: #2dd4bf;
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.4);
}

.az-btn-emerald {
  background: var(--green);
  color: #040810;
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}
.az-btn-emerald:hover {
  background: #34d399;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.az-btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.az-btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.az-btn-dark {
  background: #141d2f;
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.az-btn-dark:hover {
  background: #1c2942;
  border-color: rgba(0, 210, 255, 0.3);
}

.az-btn-danger-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.az-btn-danger-icon:hover {
  background: var(--red-dim);
  border-color: var(--red);
}

/* Inputs */
.az-input {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease;
}
.az-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.2);
}
.az-input-mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Flash notification */
.az-flash {
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyan);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Footer bottom bar */
.az-page-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}
.az-page-footer-links {
  display: flex;
  gap: 20px;
}
.az-page-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.az-page-footer-links a:hover {
  color: var(--cyan);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & TOUCH ADAPTATION ENGINE
   ========================================================================== */

/* Mobile Header Bar */
.az-mobile-header {
  display: none;
  height: 58px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 101;
  box-sizing: border-box;
}

.az-mobile-menu-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.az-mobile-menu-btn:hover,
.az-mobile-menu-btn:active {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.4);
  color: var(--cyan);
}

/* Sidebar Close Button */
.az-sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.az-sidebar-close-btn:hover,
.az-sidebar-close-btn:active {
  color: #fff;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.15);
}

/* Sidebar Backdrop Blur Overlay */
.az-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.az-sidebar-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Breakpoint 1: Tablets & Landscape (<= 992px) */
@media (max-width: 992px) {
  .az-sidebar {
    transform: translateX(-100%);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.85);
    z-index: 1000;
    width: 285px;
    max-width: 86vw;
  }
  .az-sidebar.open {
    transform: translateX(0);
  }
  .az-sidebar-close-btn {
    display: flex;
  }
  .az-main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .az-mobile-header {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .az-topbar {
    display: none !important;
  }
  .az-page-body {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Breakpoint 2: Smart Devices & Phablets (<= 768px) */
@media (max-width: 768px) {
  .az-page-body {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .az-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }
  .az-page-title-group h1 {
    font-size: 22px;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.25;
  }
  .az-page-subtitle {
    font-size: 12.5px;
  }

  .az-header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .az-header-actions > *,
  .az-header-actions form {
    flex: 1 1 auto;
    display: flex;
  }
  .az-header-actions button,
  .az-header-actions a {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }

  .az-card {
    padding: 16px 14px !important;
    border-radius: 12px;
    margin-bottom: 16px;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .az-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 16px;
  }
  .az-card-header > div {
    width: 100% !important;
    justify-content: space-between !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Table Controls & Filter Bar */
  .az-table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .az-table-controls > div {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .az-table-controls form {
    width: 100%;
  }
  .az-table-controls input,
  .az-table-controls select {
    width: 100% !important;
    box-sizing: border-box;
  }

  .az-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .az-search-box {
    min-width: 0;
    width: 100%;
  }
  .az-filter-pills {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
  }
  .az-pill-tab {
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  /* Footer */
  .az-page-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    align-items: center;
    font-size: 11.5px;
    padding-top: 20px;
  }
  .az-page-footer-links {
    justify-content: center;
    gap: 14px;
  }

  /* Touch Form Elements - prevent iOS auto-zoom */
  input[type="text"],
  input[type="password"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Breakpoint 3: Compact Phones (<= 576px) */
@media (max-width: 576px) {
  .az-page-body {
    width: 95%;
    max-width: 95%;
    padding: 14px 0;
  }

  .az-page-title-group h1 {
    font-size: 19px;
  }

  /* Auth Pages Mobile Styling */
  .az-auth-header-strip {
    padding: 12px 14px;
  }
  .az-auth-strip-sub,
  .az-auth-strip-sep {
    display: none !important;
  }
  .az-auth-strip-title {
    font-size: 10.5px;
  }
  .az-node-badge {
    font-size: 10.5px;
    padding: 4px 8px;
  }
  .az-auth-wrapper {
    padding: 12px 8px;
  }
  .az-auth-card-modern {
    padding: 24px 16px 0 16px;
    border-radius: 14px;
  }
  .az-auth-shield-box {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  .az-auth-brand-name {
    font-size: 20px;
  }
  .az-auth-subtitle-text {
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 16px;
  }
  .az-auth-tabs {
    margin-bottom: 16px;
  }
  .az-auth-tab {
    padding: 8px;
    font-size: 12px;
  }
  .az-auth-form {
    padding-top: 16px;
    gap: 13px;
  }
  .az-auth-crypto-footer {
    margin: 18px -16px 0 -16px;
    padding: 11px 12px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .az-crypto-left,
  .az-crypto-right {
    justify-content: center;
    font-size: 10px;
  }
}

/* Breakpoint 4: Ultra Narrow Screens (<= 380px) */
@media (max-width: 380px) {
  .az-page-body {
    width: 96%;
    max-width: 96%;
  }
  .az-auth-card-modern {
    padding: 20px 12px 0 12px;
  }
  .az-auth-crypto-footer {
    margin: 16px -12px 0 -12px;
    padding: 10px;
  }
  .az-card {
    padding: 14px 12px;
  }
}

/* ==========================================================================
   AUTHENTICATION PAGES (LOGIN & REGISTRATION)
   ========================================================================== */

.az-auth-page {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #05080e;
  background-image: 
    linear-gradient(rgba(0, 210, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

.az-auth-header-strip {
  width: 100%;
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  box-sizing: border-box;
}
.az-auth-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}
.az-auth-strip-title {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.az-auth-strip-sep {
  color: #334155;
}
.az-auth-strip-sub {
  color: #64748b;
  letter-spacing: 0.5px;
}

.az-node-badge {
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyan);
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.az-auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
}

.az-auth-card-modern {
  width: 100%;
  max-width: 450px;
  background: #09101d;
  border: 1px solid #16243b;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  padding: 36px 32px 0 32px;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.az-auth-shield-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 28px rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  color: var(--cyan);
  font-size: 24px;
}

.az-auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.az-auth-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.az-auth-brand-name span {
  color: var(--cyan);
}
.az-auth-core-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--cyan);
  letter-spacing: 0.5px;
}

.az-auth-subtitle-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 22px;
}

.az-auth-tabs {
  background: #060a12;
  border: 1px solid #142034;
  border-radius: 10px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 22px;
}
.az-auth-tab {
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.az-auth-tab.active {
  background: #0d1a2d;
  border-color: rgba(0, 210, 255, 0.35);
  color: var(--cyan);
  font-weight: 700;
}

.az-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 22px;
}

.az-auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.az-auth-label {
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.az-forgot-link {
  font-size: 11.5px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}
.az-forgot-link:hover {
  text-decoration: underline;
}

.az-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.az-auth-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-size: 14px;
  pointer-events: none;
}
.az-auth-input-wrap input {
  width: 100%;
  background: #060b14;
  border: 1px solid #16243b;
  color: #fff;
  padding: 12px 14px 12px 42px;
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.az-auth-input-wrap input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}
.az-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
}
.az-eye-btn:hover {
  color: var(--cyan);
}

.az-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  margin-top: -2px;
}
.az-remember-row input[type="checkbox"] {
  accent-color: var(--cyan);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.az-btn-auth-submit {
  width: 100%;
  background: var(--cyan);
  color: #040810;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.3);
  transition: all 0.15s ease;
  margin-top: 4px;
}
.az-btn-auth-submit:hover {
  background: #38bdf8;
  box-shadow: 0 6px 22px rgba(0, 210, 255, 0.45);
}

.az-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px 0;
  color: #475569;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.8px;
}
.az-auth-divider::before,
.az-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #142034;
}

.az-btn-fido {
  width: 100%;
  background: #070d17;
  border: 1px solid #18263d;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 11px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}
.az-btn-fido:hover {
  background: #0d1729;
  border-color: rgba(0, 210, 255, 0.3);
  color: #fff;
}

.az-auth-crypto-footer {
  border-top: 1px solid #142034;
  margin: 22px -32px 0 -32px;
  padding: 13px 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #060a12;
  border-radius: 0 0 18px 18px;
  box-sizing: border-box;
}
.az-crypto-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
}
.az-crypto-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
