/* Auth experience — glass cards, soft motion */

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(37,99,235,.16), transparent 55%),
    radial-gradient(700px 380px at 90% 100%, rgba(245,158,11,.12), transparent 50%),
    #F8FAFC;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .5;
  animation: auth-float 10s ease-in-out infinite;
}

.auth-orb-a {
  width: 320px; height: 320px;
  background: #2563EB;
  top: 8%; right: 12%;
}

.auth-orb-b {
  width: 260px; height: 260px;
  background: #F59E0B;
  bottom: 10%; left: 8%;
  animation-delay: -3s;
}

@keyframes auth-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -18px); }
}

.auth-shell {
  width: 100%;
  max-width: 440px;
}

.auth-brand { margin-bottom: 1.5rem; }

.auth-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.auth-card h1 {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin: 0 0 .35rem;
  color: #0F172A;
}

.auth-sub {
  color: #64748B;
  margin-bottom: 1.5rem;
}

.auth-card .form-label {
  font-weight: 600;
  font-size: .88rem;
  color: #1E293B;
}

.auth-card .form-control {
  border-radius: 12px;
  padding: .8rem 1rem;
  border-color: #E2E8F0;
  background: rgba(255,255,255,.9);
}

.auth-card .form-control:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, 0.15);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: #475569;
  margin: 0;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #2563EB;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0;
  color: #94A3B8;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.oauth-stack {
  display: grid;
  gap: .65rem;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #0F172A;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-oauth:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  color: #0F172A;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.btn-oauth.google i { color: #EA4335; }
.btn-oauth.facebook i { color: #1877F2; }

.auth-foot {
  text-align: center;
  margin-top: 1.35rem;
  color: #64748B;
  font-size: .95rem;
}

.auth-foot a { font-weight: 600; }

.otp-input {
  letter-spacing: .35em;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  font-family: "Poppins", system-ui, sans-serif;
}

.qr-wrap {
  display: grid;
  place-items: center;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
}

.qr-wrap img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
}

.secret-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem;
  word-break: break-all;
  background: #F1F5F9;
  padding: .65rem .8rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.recovery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin: 1rem 0 1.5rem;
}

.recovery-grid code {
  display: block;
  text-align: center;
  padding: .55rem;
  background: #0F172A;
  color: #F8FAFC;
  border-radius: 8px;
  font-size: .85rem;
}

@media (max-width: 480px) {
  .auth-card { padding: 1.5rem 1.2rem; }
  .recovery-grid { grid-template-columns: 1fr; }
}

html[data-theme="dark"] .auth-backdrop {
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(37,99,235,.28), transparent 55%),
    radial-gradient(700px 380px at 90% 100%, rgba(245,158,11,.18), transparent 50%),
    #070B14;
}

html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .glass {
  background: rgba(15, 22, 35, 0.72);
  border-color: rgba(255,255,255,.08);
  color: #E8EEF9;
}

html[data-theme="dark"] .secret-code {
  background: #0F1623;
  color: #E8EEF9;
}
