/* Auth Forms Theme — Glassmorphism + Subtle Motion
   Scope: #login, .auth-page
   Notes: Loads after /assets/css/main.css via the page's head block.
*/

/* Layout background */
.auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.auth-page .auth-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Gradient wash */
.auth-page .gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(99,102,241,.25), transparent 60%),
              radial-gradient(1000px 700px at 100% 20%, rgba(14,165,233,.18), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.35));
}

/* Colorful blurred blobs */
.auth-page .blob {
  position: absolute;
  filter: blur(50px);
  opacity: .65;
  border-radius: 50%;
  transform: translate3d(0,0,0);
}
.auth-page .blob-1 { width: 460px; height: 460px; left: -120px; top: -80px; background: #a78bfa; }
.auth-page .blob-2 { width: 520px; height: 520px; right: -140px; bottom: -120px; background: #60a5fa; }

@keyframes floaty {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-10px,0) scale(1.02); }
  100% { transform: translate3d(0,0,0) scale(1); }
}

.auth-page .blob { animation: floaty 12s ease-in-out infinite; }

/*****************
  Card
*****************/
.glass-card {
  position: relative;
  margin: 40px auto;
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.10), inset 0 1px 0 rgba(255,255,255,0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme="dark"] .glass-card {
  background: rgba(2, 6, 23, 0.45);
  border-color: rgba(148,163,184,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
}

.glass-card .card-header { margin-bottom: 18px; }
.glass-card .card-title {
  margin: 0;
  font-weight: 800;
  font-size: 1.6rem;
}
.glass-card .card-subtitle {
  margin: 6px 0 0;
  color: #475569;
}
[data-theme="dark"] .glass-card .card-subtitle { color: #94a3b8; }

/* Brand icon circle */
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(14,165,233,0.25));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 10px 20px rgba(99,102,241,0.20);
}
.brand-mark i { font-size: 28px; color: #3730a3; }
[data-theme="dark"] .brand-mark i { color: #a5b4fc; }

/*****************
  Form controls
*****************/
.auth-form .form-label { font-weight: 700; color: #0f172a; }
[data-theme="dark"] .auth-form .form-label { color: #e2e8f0; }

.auth-form .input-group-text {
  border-radius: 12px 0 0 12px;
  background: rgba(241,245,249,.8);
  border: 1px solid rgba(100,116,139,.35);
}
[data-theme="dark"] .auth-form .input-group-text { background: rgba(30,41,59,.6); border-color: rgba(100,116,139,.35); }

.auth-form .form-control {
  border-radius: 0 12px 12px 0;
  border: 1px solid rgba(100,116,139,.35);
  background: rgba(255,255,255,0.85);
  padding: 12px 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
[data-theme="dark"] .auth-form .form-control { background: rgba(2,6,23,.35); color: #e5e7eb; }

.auth-form .form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.25);
  background: #fff;
}
[data-theme="dark"] .auth-form .form-control:focus { background: rgba(2,6,23,.55); }

/* Toggle password button integrated in group */
.auth-form .btn-icon.toggle-password {
  border-radius: 0 12px 12px 0;
  border: 1px solid rgba(100,116,139,.35);
  border-left: none;
  background: rgba(241,245,249,.8);
}
[data-theme="dark"] .auth-form .btn-icon.toggle-password { background: rgba(30,41,59,.6); border-color: rgba(100,116,139,.35); }

/* Submit button */
.auth-form .btn.btn-primary {
  --start: #6366f1; --end: #4f46e5;
  background: linear-gradient(135deg, var(--start), var(--end));
  border-color: #4f46e5;
  color: #fff;
  border-radius: 12px;
  padding: .7rem 1.2rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(79,70,229,0.25);
}
.auth-form .btn.btn-primary:hover { filter: brightness(1.02); transform: translateY(-1px); }

/* Muted link */
.link-muted { color: #475569; text-decoration: none; }
.link-muted:hover { color: #334155; text-decoration: underline; }
[data-theme="dark"] .link-muted { color: #cbd5e1; }

/*****************
  Dividers & Socials
*****************/
.divider { position: relative; text-align: center; margin: 20px 0; }
.divider span { background: rgba(255,255,255,0.8); padding: 0 10px; position: relative; z-index: 1; border-radius: 999px; font-weight: 600; color: #475569; }
[data-theme="dark"] .divider span { background: rgba(2,6,23,0.6); color: #cbd5e1; }
.divider:before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(100,116,139,.35); transform: translateY(-50%); }

.social-logins .btn { border-radius: 12px; padding: .65rem 1rem; font-weight: 700; }
.social-logins .btn i { font-size: 1.05rem; }

/*****************
  reCAPTCHA & helpers
*****************/
.recaptcha-wrap { margin-top: 10px; }
#login .g-recaptcha { display: inline-block; }

/*****************
  Responsive
*****************/
@media (max-width: 575.98px) {
  .glass-card { padding: 22px 16px 18px; }
  .brand-mark { width: 56px; height: 56px; border-radius: 14px; }
  .auth-page .blob { filter: blur(60px); }
}

/*****************
  Reduced motion
*****************/
@media (prefers-reduced-motion: reduce) {
  .auth-page .blob { animation: none !important; }
}
