/* Auth forms (admin + clients) only. Scoped by body classes to avoid UI regressions. */

:root {
  --auth-font: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --auth-ink: #0f172a;
  --auth-muted: #475569;
  --auth-border: rgba(15, 23, 42, 0.12);
  --auth-surface: rgba(255, 255, 255, 0.92);
  --auth-surface-solid: #ffffff;
  --auth-ring: rgba(37, 99, 235, 0.18);
  --auth-primary: #2563eb;
  --auth-primary-ink: #ffffff;
  --auth-shadow: 0 20px 60px rgba(2, 6, 23, 0.18);
}

body.login_admin,
body.customers_login {
  font-family: var(--auth-font);
  color: var(--auth-muted);
  background:
    radial-gradient(1000px 600px at 15% 10%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(900px 520px at 85% 15%, rgba(20, 184, 166, 0.16), transparent 60%),
    radial-gradient(900px 520px at 60% 90%, rgba(99, 102, 241, 0.12), transparent 60%),
    linear-gradient(180deg, #f8fafc, #eef2ff);
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
}

/* Clients area has a navbar/footer; avoid forcing extra scroll height. */
body.customers_login .auth-shell {
  min-height: auto;
  padding: 40px 16px 52px;
}

.auth-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 18px;
}

.auth-brand img {
  max-height: 60px;
  width: auto;
}

.auth-brand .logo-text,
.auth-brand a.logo-text {
  display: inline-block;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--auth-ink);
  text-decoration: none;
  font-size: 18px;
}

.auth-brand .logo-text:hover,
.auth-brand a.logo-text:hover {
  text-decoration: none;
  color: var(--auth-ink);
}

.auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  box-shadow: var(--auth-shadow);
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.auth-card .panel-body {
  padding: 22px 22px;
}

@media (min-width: 480px) {
  .auth-card .panel-body {
    padding: 26px 26px;
  }
}

.auth-title {
  color: var(--auth-ink);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.auth-subtitle {
  margin: 8px 0 0 0;
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-head {
  text-align: center;
  margin-bottom: 18px;
}

.auth-form label,
.auth-form .control-label {
  color: var(--auth-ink);
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-form .form-group {
  margin-bottom: 14px;
}

.auth-form .form-control {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: var(--auth-surface-solid);
  box-shadow: none;
  -webkit-transition: border-color 150ms ease, box-shadow 150ms ease;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-form textarea.form-control {
  height: auto;
  min-height: 96px;
}

.auth-form .form-control:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px var(--auth-ring);
}

.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.auth-meta .checkbox {
  margin: 0;
}

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

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

.auth-actions {
  margin-top: 16px;
}

.auth-actions .btn {
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-actions .btn-primary {
  background: var(--auth-primary);
  border-color: rgba(29, 78, 216, 0.8);
}

.auth-actions .btn-primary:hover,
.auth-actions .btn-primary:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.auth-actions .btn-default {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.9);
}

.auth-actions .btn-default:hover,
.auth-actions .btn-default:focus {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.9);
}

.auth-foot {
  text-align: center;
  margin-top: 14px;
  color: rgba(15, 23, 42, 0.55);
  font-size: 12px;
}

/* Make alerts match the card look a bit better without touching global styles. */
body.login_admin .alert,
body.customers_login .alert {
  border-radius: 12px;
}
