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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ── Login page ─────────────────────────────────────────────────────────── */
.login-bg {
  min-height: 100vh;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.login-wrapper {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 420px;
}

.login-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #1e293b;
  margin-bottom: 0.25rem;
  margin-top: 0.25rem;
}

.login-logo span {
  color: #2563eb;
}

.login-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.login-card .form-control {
  border-radius: 8px;
  padding: 0.65rem 0.875rem;
  border-color: #e2e8f0;
  font-size: 0.95rem;
}

.login-card .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-card .input-group-text {
  background: #fff;
  border-color: #e2e8f0;
  border-left: none;
  cursor: pointer;
  color: #94a3b8;
  border-radius: 0 8px 8px 0;
}

.login-card .input-group .form-control {
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.login-card .btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  border-radius: 8px;
  padding: 0.65rem;
  font-weight: 600;
  color: #fff;
}

.login-card .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 1.25rem 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.login-card .btn-outline-secondary {
  border-color: #e2e8f0;
  color: #334155;
  border-radius: 8px;
  padding: 0.6rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-card .btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

.login-card a {
  color: #2563eb;
  font-size: 0.85rem;
}

.login-card .text-secondary {
  font-size: 0.85rem;
}