/* Futura theme — auth pages (login / signup / password). Uses futura.css variables. */

.ft-auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 140% 120% at 50% 0%, rgba(139, 92, 246, 0.06), transparent 70%),
    var(--bg);
}
.ft-auth-card,
.ft-auth-shell { position: relative; z-index: 1; }
html[data-theme="light"] .ft-auth-main {
  background:
    radial-gradient(ellipse 140% 120% at 50% 0%, rgba(139, 92, 246, 0.04), transparent 70%),
    var(--bg);
}
.ft-auth-bg { position: absolute; inset: 0; pointer-events: none; }
/* Balancing glow, bottom-right (very subtle) */
.ft-auth-bg .ft-blob-c {
  position: absolute;
  width: 440px;
  height: 440px;
  right: -150px;
  bottom: -170px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.20), transparent 70%);
  animation: ftDrift 16s ease-in-out infinite alternate;
  animation-delay: -5s;
}
html[data-theme="light"] .ft-auth-bg .ft-blob-c { opacity: 0.28; }

/* Two-column shell: brand/trust panel (desktop only) + form card */
.ft-auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1010px;
}
.ft-auth-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: ftAuthIn 0.6s 0.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
/* Brand icon (favicon symbol) above the trust panel — clean, no box */
.ft-auth-side-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
}
.ft-auth-side-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(30, 167, 255, 0.35));
}
html[data-theme="light"] .ft-auth-side-brand img {
  filter: drop-shadow(0 3px 12px rgba(101, 68, 240, 0.22));
}
.ft-auth-side-stars { color: #fbbf24; font-size: 17px; letter-spacing: 3px; }
.ft-auth-side-slogan {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.2px;
  margin: -4px 0 2px;
}
.ft-auth-side-title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.15;
  background: linear-gradient(120deg, var(--text) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ft-auth-side-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 11px; }
.ft-auth-side-list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--muted); opacity: 0.72; }
.ft-auth-side-list li strong { color: var(--text); font-weight: 800; opacity: 1; }
.ft-auth-side-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  font-size: 12px;
  flex-shrink: 0;
}

.ft-auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: ftAuthIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
/* Depth glow behind the card — barely visible, adds premium feel */
.ft-auth-card::after {
  content: "";
  position: absolute;
  inset: -48px -32px;
  border-radius: 28px;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(139, 92, 246, 0.09), transparent 72%);
  z-index: -1;
  pointer-events: none;
}
html[data-theme="light"] .ft-auth-card::after {
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(139, 92, 246, 0.06), transparent 72%);
}
/* Light theme: the heavy black shadow looks dirty on white — soften it */
html[data-theme="light"] .ft-auth-card {
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}
@keyframes ftAuthIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Premium border: subtle gradient, purple on top fading to blue below */
.ft-auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.72) 0%, rgba(139, 92, 246, 0.22) 12%, rgba(139, 92, 246, 0.08) 35%, rgba(59, 130, 246, 0.06) 55%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Auth logo — just the logo, no chrome */
.ft-auth-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  text-decoration: none;
}
.ft-auth-logo .ft-logo-slot {
  max-width: 240px;
  height: 72px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.ft-auth-logo .ft-logo-slot img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
html[data-theme="light"] .ft-auth-logo .ft-logo-slot img {
  height: 70px;
}

html[data-theme="light"] .ft-auth-card input[type="text"],
html[data-theme="light"] .ft-auth-card input[type="email"],
html[data-theme="light"] .ft-auth-card input[type="password"],
html[data-theme="light"] .ft-auth-card select {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text);
}
html[data-theme="light"] .ft-auth-card input:focus,
html[data-theme="light"] .ft-auth-card select:focus {
  background: #fff;
  border-color: rgba(101, 68, 240, 0.55);
  box-shadow: 0 0 0 3px rgba(101, 68, 240, 0.12);
}
html[data-theme="light"] .ft-auth-side-list li { opacity: 0.88; }

.ft-auth-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-align: center;
  margin-bottom: 6px;
}
.ft-auth-desc {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 22px;
}

.ft-auth-card .form-group { margin-bottom: 13px; }
.ft-auth-card label.ft-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.ft-auth-card input[type="text"],
.ft-auth-card input[type="email"],
.ft-auth-card input[type="password"],
.ft-auth-card input[type="tel"],
.ft-auth-card select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.ft-auth-card input::placeholder { color: var(--muted); opacity: 0.95; }
/* Stripe/Clerk-style focus: purple border + very soft glow ring */
.ft-auth-card input:focus,
.ft-auth-card select:focus {
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

/* reCAPTCHA: breathing room so it doesn't feel glued to the form */
.ft-auth-card .g-recaptcha {
  margin: 16px 0 12px;
  display: flex;
  justify-content: center;
}

/* Auto-detected timezone row (select stays hidden until "change") */
.ft-tz-detected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--muted);
}
.ft-tz-detected strong { color: var(--text); font-weight: 700; }
.ft-tz-change {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.ft-tz-change:hover { text-decoration: underline; }

.ft-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 14px;
}
.ft-auth-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ft-auth-check input { accent-color: var(--accent); width: 15px; height: 15px; }
.ft-auth-check a { color: var(--accent); text-decoration: none; }
.ft-auth-check a:hover { text-decoration: underline; }

.ft-auth-card .btn-submit,
.ft-auth-submit {
  width: 100%;
  border: none;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}
.ft-auth-card .btn-submit:hover,
.ft-auth-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.35);
}
.ft-auth-card .btn-submit:active { transform: translateY(0); }

.ft-auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.ft-auth-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
.ft-auth-footer a:hover { text-decoration: underline; }
.ft-auth-links { margin-top: 8px; }

/* AJAX responses (filled by process.js) */
.alert-message-reponse { font-size: 13px; }
.alert-message-reponse .alert {
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.alert-message-reponse .alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}
html[data-theme="light"] .alert-message-reponse .alert-danger { color: #dc2626; }
.alert-message-reponse .alert-success {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--green);
}

/* Social login buttons (rendered by helper, bootstrap-ish classes) */
.ft-auth-card .social-login,
.ft-auth-card .btn-social { margin-top: 4px; }
.ft-auth-card .btn {
  display: inline-block;
  width: 100%;
  border-radius: 10px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-2);
  margin-bottom: 8px;
}
.ft-auth-card .btn:hover { border-color: var(--accent); }

.g-recaptcha { margin-bottom: 6px; }

/* Tablet & below: hide the brand panel, center the card alone */
@media (max-width: 900px) {
  .ft-auth-shell {
    grid-template-columns: 1fr;
    max-width: 440px;
    justify-items: center;
  }
  .ft-auth-side { display: none; }
}
@media (max-width: 480px) {
  .ft-auth-card { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ft-auth-card, .ft-auth-side { animation: none; }
  .ft-auth-bg .ft-blob-c { animation: none; }
}
