:root {
  --auth-primary: #155eef;
  --auth-primary-hover: #0f4fd1;
  --auth-text: #172033;
  --auth-muted: #5b6678;
  --auth-border: #d8dee8;
  --auth-bg: #f3f6fb;
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, #e3ecff 0%, transparent 70%),
    var(--auth-bg);
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-logo { display: inline-flex; margin-bottom: 24px; }
.auth-logo img { width: 120px; height: auto; max-height: 60px; object-fit: contain; mix-blend-mode: multiply; }

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow: 0 1px 2px #1018280a, 0 12px 32px #1018281a;
}

.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.auth-head p { color: var(--auth-muted); margin: 0; font-size: .95rem; }

.auth-card .alert { font-size: .9rem; padding: 10px 14px; border-radius: 10px; }
.auth-card .alert[hidden] { display: none !important; }

.social-row { display: flex; justify-content: center; gap: 14px; }
.btn-social {
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  background: #fff;
  border: 0;
  border-radius: 10px;
  color: var(--auth-text);
  font-weight: 600;
}
.btn-social:hover, .btn-social:focus-visible { background: #f1f4f9; color: var(--auth-text); }
.btn-social .bi { font-size: 1.82rem; line-height: 1; }
.auth-head { margin-bottom: 16px !important; }
.text-facebook { color: #1877f2; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--auth-muted);
  font-size: .82rem;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-border); }

.auth-card .form-label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.auth-card .form-control-lg { font-size: 1rem; height: 48px; border-radius: 10px; border-color: var(--auth-border); }
.auth-card .input-group .form-control-lg { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.auth-card .form-control:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 .2rem #155eef26; }
.password-toggle { width: 48px; border-color: var(--auth-border); border-top-right-radius: 10px !important; border-bottom-right-radius: 10px !important; color: var(--auth-muted); }
.password-toggle:hover { background: #f7f9fc; color: var(--auth-text); border-color: var(--auth-border); }

.auth-card .btn-primary {
  height: 48px;
  margin-top: 4px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--auth-primary);
  border-color: var(--auth-primary);
}
.auth-card .btn-primary:hover { background: var(--auth-primary-hover); border-color: var(--auth-primary-hover); }

.auth-link { color: var(--auth-primary); font-size: .875rem; font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; color: var(--auth-primary-hover); }

.auth-switch { text-align: center; margin: 22px 0 0; color: var(--auth-muted); font-size: .9rem; }
.auth-switch .auth-link { font-size: .9rem; vertical-align: baseline; }

.auth-footer { margin-top: 24px; color: var(--auth-muted); font-size: .82rem; text-align: center; }
.auth-footer a { color: var(--auth-muted); }

.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }

@media (max-width: 480px) {
  .auth-wrap { justify-content: flex-start; padding-top: 32px; }
  .auth-card { padding: 28px 20px 22px; border-radius: 14px; }
}
