html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

:root {
  --auth-brand: #14487e;
  --auth-brand-2: #1f6feb;
  --auth-bg-1: #0b1220;
  --auth-bg-2: #0f2742;
}

.auth-body {
  margin-bottom: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(31, 111, 235, 0.22), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(20, 72, 126, 0.28), transparent 55%),
    linear-gradient(160deg, var(--auth-bg-1), var(--auth-bg-2));
}

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

.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.6) inset;
}

.auth-aside {
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(31, 111, 235, 0.35), transparent 60%),
    linear-gradient(160deg, rgba(20, 72, 126, 0.98), rgba(10, 33, 64, 0.98));
  color: #ffffff;
}

.auth-aside-inner {
  width: 100%;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-logo {
  width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.auth-logo-sm {
  width: 84px;
  filter: none;
  opacity: 1;
}

.auth-title {
  margin: 10px 0 0;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  margin: 0;
  opacity: 0.9;
  line-height: 1.45;
}

.auth-badges {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-aside-footer {
  margin-top: auto;
  opacity: 0.85;
}

.auth-form {
  background: rgba(255, 255, 255, 0.94);
}

.auth-form-title {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: #0b1a2b;
}

.auth-form-subtitle {
  color: rgba(11, 26, 43, 0.65);
}

.auth-primary-btn {
  border: 0;
  padding: 12px 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--auth-brand), var(--auth-brand-2));
  box-shadow: 0 10px 18px rgba(31, 111, 235, 0.25);
}

.auth-primary-btn:hover {
  filter: brightness(1.03);
}

.auth-secondary-btn {
  padding: 11px 14px;
}

.auth-link {
  color: var(--auth-brand);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-divider {
  position: relative;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: rgba(11, 26, 43, 0.12);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.94);
  color: rgba(11, 26, 43, 0.55);
  font-size: 0.9rem;
}

.auth-bottom small {
  color: rgba(255, 255, 255, 0.72) !important;
}

.auth-form .form-control {
  border-radius: 12px;
  border-color: rgba(11, 26, 43, 0.12);
}

.auth-form .form-control:focus {
  border-color: rgba(31, 111, 235, 0.35);
  box-shadow: 0 0 0 0.25rem rgba(31, 111, 235, 0.18);
}

.auth-token-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
}