/* ─────────────────────────────────────────────────────────
   travelplace · sign-in — full-bleed Vernazza photo bg,
   floating glass cards matching the hero workflow frame.
   ───────────────────────────────────────────────────────── */

:root {
  --auth-green: #22c55e;
  --auth-ink: #0a0a0a;
  --auth-glass-bg: rgba(20, 35, 30, 0.3);
  --auth-glass-border: rgba(255, 255, 255, 0.14);
  --auth-glass-inset: rgba(255, 255, 255, 0.1);
  --auth-soft-text: rgba(255, 255, 255, 0.78);
}

html,
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-feature-settings: "ss01", "ss02";
  color: #fff;
  /* NO opaque background — SigninBackground (fixed inset-0 -z-10) sits behind, and
     CSS stacking paints a parent's own bg AFTER negative-z-index children, so any
     bg here would cover the photo. */
  background: transparent;
  min-height: 100vh;
}

/* Stage — no internal background. The bg comes from <SigninBackground /> mounted
   above (fixed inset-0). The stage just lays out the floating glass cards. */
.auth-stage {
  position: relative;
  min-height: 100vh;
  padding: clamp(20px, 2.4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.auth-stage::before,
.auth-stage::after {
  content: none;
}

/* ── Floating mark (top-left) ─────────────────────────── */
.auth-mark {
  position: absolute;
  top: clamp(24px, 2.4vw, 40px);
  left: clamp(24px, 2.4vw, 40px);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--auth-glass-bg);
  border: 1px solid var(--auth-glass-border);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--auth-glass-inset);
  z-index: 3;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.auth-mark:hover {
  transform: translateY(-1px);
}

/* ── Floating mode toggle (top-right) ─────────────────── */
.auth-toggle {
  position: absolute;
  top: clamp(24px, 2.4vw, 40px);
  right: clamp(24px, 2.4vw, 40px);
  display: inline-flex;
  padding: 5px;
  gap: 0;
  border-radius: 999px;
  background: var(--auth-glass-bg);
  border: 1px solid var(--auth-glass-border);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--auth-glass-inset);
  z-index: 3;
  overflow: hidden;
}
.auth-toggle-btn {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  cursor: pointer;
  transition: color 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.auth-toggle-btn.is-active {
  color: #0a0a0a;
}
.auth-toggle-pill {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: #ffffff;
  border-radius: 999px;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── Centred glass form panel ─────────────────────────── */
.auth-panel {
  position: relative;
  z-index: 2;
  width: min(420px, 92vw);
  padding: clamp(32px, 4vw, 44px) clamp(28px, 3.5vw, 40px);
  border-radius: 28px;
  background: var(--auth-glass-bg);
  border: 1px solid var(--auth-glass-border);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--auth-glass-inset);
  text-align: center;
}

.auth-heading {
  margin: 0 0 8px 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #ffffff;
}
.auth-tagline {
  margin: 0 0 28px 0;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: -0.01em;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Input pills ──────────────────────────────────────── */
.auth-field {
  position: relative;
  display: block;
}
.auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  outline: none;
  transition:
    border-color 200ms cubic-bezier(0.32, 0.72, 0, 1),
    background 200ms cubic-bezier(0.32, 0.72, 0, 1);
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.auth-field input:focus {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(255, 255, 255, 0.1);
}
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.06) inset;
  caret-color: #ffffff;
  transition: background-color 9999s ease;
}

/* Password eye */
.auth-field-password {
  position: relative;
}
.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.auth-eye:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* ── Primary CTA ──────────────────────────────────────── */
.auth-cta {
  margin-top: 6px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  background: #22c55e;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 200ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.auth-cta:hover {
  background: #16a34a;
  transform: translateY(-1px);
}
.auth-cta:active {
  transform: translateY(0);
}
.auth-cta-arrow {
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.auth-cta:hover .auth-cta-arrow {
  transform: translateX(2px);
}

/* ── Divider ──────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 6px 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* ── Social buttons row ───────────────────────────────── */
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.auth-social-btn {
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 200ms cubic-bezier(0.32, 0.72, 0, 1),
    border-color 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.auth-social-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Footnote ─────────────────────────────────────────── */
.auth-foot {
  margin: 18px 0 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.auth-foot a {
  color: #22c55e;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 197, 94, 0.4);
  transition: border-color 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.auth-foot a:hover {
  border-color: rgba(34, 197, 94, 0.9);
}

/* ── Bottom cue (small caption) ───────────────────────── */
.auth-cue {
  position: absolute;
  bottom: clamp(20px, 2.4vw, 36px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  z-index: 3;
  white-space: nowrap;
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .auth-toggle {
    top: auto;
    bottom: clamp(20px, 4vw, 32px);
    right: 50%;
    transform: translateX(50%);
  }
  .auth-cue {
    display: none;
  }
}
