:root {
  --navy-900: #061735;
  --navy-800: #0a2552;
  --navy-700: #0f3672;
  --blue-500: #2b7cff;
  --bg-soft: #f3f7ff;
  --text-main: #0a1c3f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 600px at 10% 0%, rgba(43, 124, 255, 0.2), transparent 55%),
    linear-gradient(180deg, var(--bg-soft), #ffffff);
}

.page-main {
  flex: 1 0 auto;
}

.app-navbar {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  box-shadow: 0 8px 24px rgba(6, 23, 53, 0.25);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.95;
}

.brand-text {
  min-width: 0;
}

.top-logos {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.top-logos img {
  max-height: 62px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(10, 37, 82, 0.1);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(10, 37, 82, 0.1);
  backdrop-filter: blur(8px);
}

.modern-form-wrap {
  border-radius: 0 0 16px 16px;
  border-color: rgba(10, 37, 82, 0.12) !important;
}

.modern-tabs .nav-link {
  border: 0;
  border-radius: 12px 12px 0 0;
  margin-right: 8px;
  color: #26447a;
  font-weight: 700;
}

.modern-tabs .nav-link.active {
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500));
  color: #fff;
}

.modern-form .form-control {
  border-radius: 12px;
  border: 1px solid rgba(10, 37, 82, 0.2);
  padding: 0.62rem 0.8rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.modern-form .form-control:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 0.2rem rgba(15, 54, 114, 0.18);
}

.password-rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 4px;
}

.rule-item {
  font-size: 0.93rem;
  color: #6b7a96;
  padding-left: 22px;
  position: relative;
}

.rule-item::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: 0;
  color: #94a3bf;
}

.rule-item.ok {
  color: #0f7a43;
  font-weight: 600;
}

.rule-item.ok::before {
  content: "✓";
  color: #0f7a43;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.btn-brand {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-700));
  border: 0;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.58rem 0.95rem;
}

.btn-brand:hover {
  filter: brightness(0.98);
  color: #fff;
}

.sidebar-wrap {
  padding: 12px;
}

.sidebar-label {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #4d6088;
  margin: 6px 8px 10px;
}

.sidebar-link {
  border: 0 !important;
  border-radius: 12px !important;
  margin-bottom: 8px;
  color: #17335f !important;
  font-weight: 600;
}

.sidebar-link.active {
  background: linear-gradient(90deg, var(--navy-700), var(--blue-500)) !important;
  color: #fff !important;
}

.stats-box {
  padding: 12px;
  border: 1px solid rgba(10, 37, 82, 0.12);
  border-radius: 12px;
  background: #fff;
}

.stats-label {
  font-size: 12px;
  color: #4d6088;
}

.stats-value {
  font-size: 1.35rem;
  font-weight: 800;
}

.app-footer {
  margin-top: auto;
  padding: 16px 0;
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  color: #dce9ff;
}

.app-footer p {
  margin: 0;
  font-size: 0.92rem;
  text-align: center;
}
