/* Login interface refresh. */
:root {
  color-scheme: light;
  --auth-primary: #2563eb;
  --auth-navy: #0f172a;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(96, 165, 250, 0.24), transparent 24rem),
    radial-gradient(circle at 86% 82%, rgba(37, 99, 235, 0.16), transparent 28rem),
    linear-gradient(145deg, #eef5ff 0%, #f8fafc 48%, #eff6ff 100%);
  color: #1e293b;
}

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 50%;
}

body::before {
  width: 420px;
  height: 420px;
  top: -260px;
  right: -120px;
}

body::after {
  width: 300px;
  height: 300px;
  bottom: -210px;
  left: -90px;
}

.login-box {
  position: relative;
  width: min(100%, 420px);
  padding: 42px 42px 34px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  box-shadow: 0 30px 80px -38px rgba(15, 23, 42, 0.42), 0 8px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.login-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #1d4ed8, #60a5fa);
  box-shadow: 0 14px 28px -12px rgba(37, 99, 235, 0.68);
}

.login-box h1 {
  color: var(--auth-navy);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.login-box .sub {
  margin-top: 5px;
  margin-bottom: 30px;
  color: #64748b;
}

.field {
  margin-bottom: 17px;
}

.field label {
  margin-bottom: 7px;
  color: #475569;
  font-weight: 600;
}

.field input {
  min-height: 46px;
  padding: 11px 14px;
  border-color: #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:hover {
  border-color: #94a3b8;
}

.field input:focus {
  border-color: var(--auth-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.btn {
  min-height: 47px;
  margin-top: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.72);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  box-shadow: 0 16px 30px -13px rgba(37, 99, 235, 0.8);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.login-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  color: #94a3b8;
  font-size: 11px;
}

.login-assurance svg {
  color: #16a34a;
}

.error {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
}

@media (max-width: 480px) {
  body {
    align-items: stretch;
    padding: 14px;
    overflow-y: auto;
  }

  .login-box {
    align-self: center;
    padding: 34px 24px 28px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
