body.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
  background:
    radial-gradient(circle at top left, #3b82f6 0%, transparent 35%),
    radial-gradient(circle at bottom right, #06b6d4 0%, transparent 35%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(59, 130, 246, 0.12);
  animation: fadeIn 0.5s ease;
}

.auth-card h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  color: #1d4ed8;
}

.auth-card .subtitle {
  margin: .5rem 0 1.75rem;
  text-align: center;
  color: #64748b;
  font-size: .95rem;
  line-height: 1.5;
}

.auth-card label {
  display: block;
  margin: 1rem 0 .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: #334155;
}

.auth-card input {
  width: 100%;
  box-sizing: border-box;
  padding: .85rem 1rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  font-size: .95rem;
  transition: all .25s ease;
}

.auth-card input:hover {
  border-color: #93c5fd;
}

.auth-card input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.auth-card .btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: .9rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
}

.auth-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

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

.auth-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: .9rem;
}

.auth-links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}

.auth-links a:hover {
  color: #1d4ed8;
}

.auth-config-hint {
  margin-top: 1rem;
  padding: .85rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  color: #92400e;
  font-size: .85rem;
}

.auth-config-hint a {
  color: #b45309;
  font-weight: 700;
}

.alert {
  padding: .85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: .9rem;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-ok {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.field-hint {
  margin-top: .3rem;
  font-size: .8rem;
  color: #64748b;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  body.auth-body {
    padding: 0.75rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .auth-card {
    padding: 1.5rem;
    border-radius: 18px;
    max-width: 100%;
  }

  .auth-card h1 {
    font-size: 1.5rem;
  }

  .auth-card .btn {
    font-size: 0.95rem;
  }

  .auth-links a {
    display: block;
    margin: .5rem 0;
  }

  .auth-config-hint {
    font-size: 0.8rem;
  }
}
