/* =====================================================================
   Smile V2 — Auth Page Styles (/iniciar-sesion)
   Self-contained; defines fallback tokens so it works without globals.
   ===================================================================== */

:root {
  --auth-burgundy: #6B2C2C;
  --auth-burgundy-dk: #521E1E;
  --auth-burgundy-lt: #8A3B3B;
  --auth-rose: #E8C5C5;
  --auth-rose-soft: #F3DEDE;
  --auth-champagne: #B8924F;
  --auth-champagne-lt: #D4B57A;
  --auth-ivory: #FAF7F2;
  --auth-ivory-2: #EFE9DE;
  --auth-ivory-3: #E4DCCB;
  --auth-cream: #F6EFE2;
  --auth-charcoal: #2C2823;
  --auth-charcoal-2: #4A4339;
  --auth-charcoal-60: rgba(44, 40, 35, 0.6);
  --auth-charcoal-40: rgba(44, 40, 35, 0.4);
  --auth-charcoal-20: rgba(44, 40, 35, 0.2);
  --auth-charcoal-10: rgba(44, 40, 35, 0.1);
  --auth-white: #FFFFFF;
  --auth-error: #B23A3A;
  --auth-success: #4A7A4A;

  --auth-serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --auth-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --auth-radius: 4px;
  --auth-radius-lg: 6px;
  --auth-shadow-sm: 0 1px 2px rgba(20, 16, 12, 0.06);
  --auth-shadow-md: 0 6px 24px rgba(20, 16, 12, 0.12);
  --auth-shadow-lg: 0 24px 64px rgba(20, 16, 12, 0.28);

  --auth-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --auth-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Root layout ---------- */
.smile-auth {
  position: fixed !important;
  inset: 0 !important;
  display: grid !important;
  grid-template-columns: 55fr 45fr;
  background: var(--auth-ivory);
  color: var(--auth-charcoal);
  font-family: var(--auth-sans);
  font-size: 15px;
  line-height: 1.5;
  z-index: 9999;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.smile-auth *,
.smile-auth *::before,
.smile-auth *::after {
  box-sizing: border-box;
}

.smile-auth h1,
.smile-auth h2,
.smile-auth h3,
.smile-auth p {
  margin: 0;
  padding: 0;
}

.smile-auth button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.smile-auth a {
  color: inherit;
  text-decoration: none;
}

/* =====================================================================
   LEFT — Editorial visual aside
   ===================================================================== */
.smile-auth__vis {
  position: relative;
  overflow: hidden;
  background: #1a1612;
  color: var(--auth-ivory);
  isolation: isolate;
}

.smile-auth__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.smile-auth__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 12, 0.45) 0%, rgba(20, 16, 12, 0.05) 28%, rgba(20, 16, 12, 0.35) 70%, rgba(20, 16, 12, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 16, 12, 0.25) 0%, rgba(20, 16, 12, 0) 40%);
  z-index: 2;
  pointer-events: none;
}

.smile-auth__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 700ms var(--auth-ease);
  z-index: 0;
  will-change: opacity, transform;
}

.smile-auth__img.is-on {
  opacity: 1;
  z-index: 1;
}

[data-ken-burns="1"] .smile-auth__img.is-on {
  animation: smileAuthKenBurns 8000ms var(--auth-ease-out) forwards;
}

@keyframes smileAuthKenBurns {
  0%   { transform: scale(1.08) translate(-0.5%, -0.4%); }
  100% { transform: scale(1.0) translate(0, 0); }
}

.smile-auth__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 0.42 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

.smile-auth__brand {
  position: absolute;
  top: 32px;
  left: 40px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-ivory);
  transition: opacity 200ms var(--auth-ease);
}

.smile-auth__brand:hover {
  opacity: 0.82;
}

.smile-auth__brand > span:first-child {
  font-family: var(--auth-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
}

.smile-auth__brand-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--auth-champagne);
  display: inline-block;
}

.smile-auth__brand small {
  font-family: var(--auth-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
}

.smile-auth__back {
  position: absolute;
  top: 36px;
  right: 36px;
  z-index: 5;
  color: var(--auth-ivory);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(250, 247, 242, 0.22);
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 220ms var(--auth-ease), border-color 220ms var(--auth-ease);
}

.smile-auth__back:hover {
  background: rgba(20, 16, 12, 0.42);
  border-color: rgba(250, 247, 242, 0.42);
}

/* ---------- Quotes ---------- */
.smile-auth__quotes {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 64px;
  max-width: 520px;
  z-index: 5;
  min-height: 144px;
}

.smile-auth__quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--auth-ease), transform 600ms var(--auth-ease);
  pointer-events: none;
}

.smile-auth__quote.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.smile-auth__quote-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--auth-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--auth-champagne-lt);
  margin-bottom: 14px;
}

.smile-auth__quote-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--auth-champagne);
}

.smile-auth__quote-text {
  font-family: var(--auth-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--auth-ivory);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  margin: 0 0 14px 0;
  max-width: 460px;
}

.smile-auth__quote-who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--auth-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.85);
}

.smile-auth__quote-nm { color: var(--auth-ivory); }
.smile-auth__quote-sep { color: var(--auth-champagne); opacity: 0.7; }
.smile-auth__quote-oc { opacity: 0.78; }

/* ---------- Dots ---------- */
.smile-auth__dots {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.smile-auth__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 240ms var(--auth-ease), transform 240ms var(--auth-ease);
}

.smile-auth__dot:hover {
  background: rgba(250, 247, 242, 0.55);
}

.smile-auth__dot.is-on {
  background: var(--auth-ivory);
  transform: scale(1.18);
}

/* =====================================================================
   RIGHT — Form section
   ===================================================================== */
.smile-auth__form {
  position: relative;
  background: var(--auth-ivory);
  padding: 56px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  /* align-items: center moved to inner via margin:auto so tall content can scroll without clipping the top */
  justify-content: center;
}

.smile-auth__inner {
  width: 100%;
  max-width: 420px;
  margin: auto 0; /* centers if it fits; allows top-overflow scroll if it doesn't */
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.smile-auth__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--auth-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--auth-burgundy);
}

.smile-auth__eyebrow-ic {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--auth-burgundy);
  transform: rotate(45deg);
}

.smile-auth__panel-head {
  display: none;
}

.smile-auth__panel-head.is-on {
  display: block;
}

.smile-auth__panel-head h1 {
  font-family: var(--auth-serif);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--auth-charcoal);
  margin: 0 0 14px 0;
}

.smile-auth__panel-head h1 em {
  font-style: italic;
  color: var(--auth-champagne);
  font-weight: 400;
}

.smile-auth__lead {
  font-family: var(--auth-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--auth-charcoal);
  opacity: 0.7;
  margin: 0;
}

/* ---------- Tabs ---------- */
.smile-auth__tabs {
  position: relative;
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--auth-charcoal-10);
  margin-top: 4px;
}

.smile-auth__tab {
  flex: 1 1 0;
  padding: 14px 8px 14px;
  font-family: var(--auth-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--auth-charcoal);
  opacity: 0.6;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: opacity 220ms var(--auth-ease), color 220ms var(--auth-ease);
}

.smile-auth__tab:hover {
  opacity: 0.85;
}

.smile-auth__tab.is-on {
  opacity: 1;
  color: var(--auth-burgundy);
}

.smile-auth__tabs-pill {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 50%;
  background: var(--auth-burgundy);
  transition: left 350ms cubic-bezier(0.22, 0.61, 0.36, 1), width 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

/* ---------- Socials ---------- */
.smile-auth__socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.smile-auth__socials:has(> *:nth-child(2)) {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.smile-soc {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--auth-white);
  color: var(--auth-charcoal);
  border: 1px solid var(--auth-ivory-3);
  border-radius: var(--auth-radius);
  padding: 0 18px;
  font-family: var(--auth-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 200ms var(--auth-ease), border-color 200ms var(--auth-ease), box-shadow 200ms var(--auth-ease), background 200ms var(--auth-ease);
}

.smile-soc:hover {
  transform: translateY(-1px);
  border-color: var(--auth-charcoal-40);
  box-shadow: var(--auth-shadow-sm);
}

.smile-soc:active {
  transform: translateY(0);
}

.smile-soc svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.smile-soc--apple {
  background: var(--auth-charcoal);
  color: var(--auth-ivory);
  border-color: var(--auth-charcoal);
}

.smile-soc--apple:hover {
  background: #1f1c18;
  border-color: #1f1c18;
}

.smile-soc--facebook {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.smile-soc--facebook:hover {
  background: #1565d8;
  border-color: #1565d8;
}

/* ---------- Divider ---------- */
.smile-divider {
  position: relative;
  text-align: center;
  font-family: var(--auth-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--auth-charcoal-60);
  margin: 2px 0;
}

.smile-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--auth-charcoal-10);
  z-index: 0;
}

.smile-divider span {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  background: var(--auth-ivory);
}

/* ---------- Form panels ---------- */
.smile-auth__panel {
  display: none;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.smile-auth__panel.is-on {
  display: flex;
}

.smile-auth__panel[hidden] {
  display: none !important;
}

@keyframes smileAuthShake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-6px); }
  30%, 60%, 90% { transform: translateX(6px); }
}

.smile-auth__panel.is-error {
  animation: smileAuthShake 420ms var(--auth-ease);
}

/* ---------- Fields ---------- */
.smile-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.smile-field > label {
  font-family: var(--auth-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--auth-charcoal);
  opacity: 0.75;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.smile-field__link {
  font-family: var(--auth-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--auth-burgundy);
  opacity: 0.9;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(107, 44, 44, 0.32);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms var(--auth-ease), opacity 200ms var(--auth-ease);
}

.smile-field__link:hover {
  opacity: 1;
  text-decoration-color: var(--auth-burgundy);
}

.smile-field__control {
  position: relative;
}

.smile-auth .smile-field input[type="text"],
.smile-auth .smile-field input[type="email"],
.smile-auth .smile-field input[type="password"],
.smile-auth .smile-field input[type="tel"] {
  width: 100% !important;
  height: 48px !important;
  padding: 14px 16px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--auth-charcoal-20) !important;
  border-radius: 0 !important;
  font-family: var(--auth-sans) !important;
  font-size: 15px !important;
  color: var(--auth-charcoal) !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 220ms var(--auth-ease), border-width 220ms var(--auth-ease);
  appearance: none;
  -webkit-appearance: none;
}

.smile-auth .smile-field input::placeholder {
  color: var(--auth-charcoal-40);
}

.smile-auth .smile-field input:hover {
  border-bottom-color: var(--auth-charcoal-40) !important;
}

.smile-auth .smile-field input:focus {
  border-bottom: 1.5px solid var(--auth-burgundy) !important;
  padding-bottom: 13.5px !important;
}

.smile-auth .smile-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--auth-charcoal);
  -webkit-box-shadow: 0 0 0 32px var(--auth-ivory) inset !important;
  box-shadow: 0 0 0 32px var(--auth-ivory) inset !important;
  caret-color: var(--auth-charcoal);
}

.smile-field--has-toggle .smile-field__control input {
  padding-right: 48px !important;
}

.smile-field__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--auth-charcoal);
  opacity: 0.55;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: opacity 200ms var(--auth-ease), background 200ms var(--auth-ease);
}

.smile-field__toggle:hover {
  opacity: 0.9;
  background: var(--auth-charcoal-10);
}

.smile-field__toggle svg {
  width: 18px;
  height: 18px;
}

.smile-field.is-invalid input {
  border-bottom-color: var(--auth-error) !important;
}

.smile-field__error {
  font-family: var(--auth-sans);
  font-size: 12px;
  color: var(--auth-error);
  display: none;
}

.smile-field.is-invalid .smile-field__error {
  display: block;
}

/* ---------- Password strength ---------- */
.smile-password-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.smile-password-strength__seg {
  height: 3px;
  border-radius: 2px;
  background: var(--auth-charcoal-10);
  transition: background 240ms var(--auth-ease);
}

.smile-password-strength[data-score="1"] .smile-password-strength__seg:nth-child(-n+1) { background: #C25A5A; }
.smile-password-strength[data-score="2"] .smile-password-strength__seg:nth-child(-n+2) { background: #C2904A; }
.smile-password-strength[data-score="3"] .smile-password-strength__seg:nth-child(-n+3) { background: var(--auth-champagne); }
.smile-password-strength[data-score="4"] .smile-password-strength__seg { background: var(--auth-success); }

.smile-password-strength__label {
  grid-column: 1 / -1;
  font-family: var(--auth-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auth-charcoal-60);
  margin-top: 4px;
}

/* ---------- Remember ---------- */
.smile-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--auth-sans);
  font-size: 13px;
  color: var(--auth-charcoal);
  cursor: pointer;
  user-select: none;
}

.smile-remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--auth-charcoal-40);
  border-radius: 3px;
  background: var(--auth-white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 200ms var(--auth-ease), border-color 200ms var(--auth-ease);
  margin: 0;
}

.smile-remember input[type="checkbox"]:hover {
  border-color: var(--auth-burgundy);
}

.smile-remember input[type="checkbox"]:checked {
  background: var(--auth-burgundy);
  border-color: var(--auth-burgundy);
}

.smile-remember input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--auth-white);
  border-bottom: 2px solid var(--auth-white);
  transform: rotate(45deg);
}

.smile-remember span {
  opacity: 0.8;
  line-height: 1.4;
}

/* ---------- GDPR row (register) ---------- */
.smile-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--auth-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--auth-charcoal);
  opacity: 0.78;
}

.smile-gdpr input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0 0;
  border: 1px solid var(--auth-charcoal-40);
  border-radius: 3px;
  background: var(--auth-white);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background 200ms var(--auth-ease), border-color 200ms var(--auth-ease);
}

.smile-gdpr input[type="checkbox"]:checked {
  background: var(--auth-burgundy);
  border-color: var(--auth-burgundy);
}

.smile-gdpr input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--auth-white);
  border-bottom: 2px solid var(--auth-white);
  transform: rotate(45deg);
}

.smile-gdpr a {
  color: var(--auth-burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Magic link CTA ---------- */
.smile-magic {
  width: 100%;
  height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: var(--auth-cream);
  border: 1px solid var(--auth-ivory-3);
  border-radius: var(--auth-radius);
  cursor: pointer;
  text-align: left;
  transition: background 220ms var(--auth-ease), border-color 220ms var(--auth-ease), transform 220ms var(--auth-ease);
}

.smile-magic:hover {
  background: var(--auth-rose-soft);
  border-color: var(--auth-rose);
}

.smile-magic:active {
  transform: scale(0.995);
}

.smile-magic__ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--auth-burgundy);
  color: var(--auth-ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.smile-magic__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.smile-magic__body b {
  font-family: var(--auth-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--auth-charcoal);
  letter-spacing: 0.005em;
}

.smile-magic__body span {
  font-family: var(--auth-sans);
  font-size: 12px;
  color: var(--auth-charcoal-60);
  line-height: 1.35;
}

.smile-magic__chev {
  font-size: 22px;
  color: var(--auth-burgundy);
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 220ms var(--auth-ease), opacity 220ms var(--auth-ease);
}

.smile-magic:hover .smile-magic__chev {
  transform: translateX(3px);
  opacity: 1;
}

/* ---------- Primary CTA ---------- */
.smile-auth .smile-cta {
  width: 100% !important;
  height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 22px !important;
  background: var(--auth-burgundy) !important;
  color: var(--auth-ivory) !important;
  border: 0 !important;
  border-radius: var(--auth-radius) !important;
  font-family: var(--auth-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  position: relative;
  transition: background 220ms var(--auth-ease), transform 180ms var(--auth-ease), box-shadow 220ms var(--auth-ease);
  text-decoration: none !important;
}

.smile-auth .smile-cta:hover {
  background: var(--auth-burgundy-dk) !important;
  box-shadow: 0 6px 18px rgba(107, 44, 44, 0.28);
}

.smile-auth .smile-cta:active {
  transform: translateY(1px);
}

.smile-auth .smile-cta[disabled],
.smile-auth .smile-cta.is-loading {
  opacity: 0.6;
  cursor: not-allowed;
}

.smile-auth .smile-cta.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(250, 247, 242, 0.4);
  border-top-color: var(--auth-ivory);
  animation: smileAuthSpin 0.7s linear infinite;
}

@keyframes smileAuthSpin {
  to { transform: rotate(360deg); }
}

.smile-auth .smile-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 220ms var(--auth-ease);
}

.smile-auth .smile-cta:hover svg {
  transform: translateX(3px);
}

.smile-auth .smile-cta--ghost {
  background: transparent !important;
  color: var(--auth-burgundy) !important;
  border: 1px solid var(--auth-burgundy) !important;
}

.smile-auth .smile-cta--ghost:hover {
  background: var(--auth-burgundy) !important;
  color: var(--auth-ivory) !important;
}

/* ---------- Guest / Foot ---------- */
.smile-guest {
  font-family: var(--auth-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--auth-charcoal-60);
  text-align: center;
  margin: 4px 0 0 0;
}

.smile-guest a {
  color: var(--auth-burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(107, 44, 44, 0.4);
  transition: text-decoration-color 200ms var(--auth-ease);
}

.smile-guest a:hover {
  text-decoration-color: var(--auth-burgundy);
}

.smile-auth__foot {
  font-family: var(--auth-sans);
  font-size: 11px;
  line-height: 1.55;
  color: var(--auth-charcoal);
  opacity: 0.5;
  text-align: center;
  margin-top: 6px;
}

.smile-auth__foot a {
  color: var(--auth-burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================================================================
   Forgot password modal
   ===================================================================== */
.smile-modal-bd {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(20, 20, 20, 0.72) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 10000 !important;
  padding: 20px;
  animation: smileAuthFadeIn 200ms var(--auth-ease);
}

.smile-modal-bd[hidden] {
  display: none !important;
}

@keyframes smileAuthFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes smileAuthRise {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.smile-modal {
  width: 100%;
  max-width: 480px;
  background: var(--auth-white);
  border-radius: var(--auth-radius-lg);
  padding: 36px 36px 32px;
  box-shadow: var(--auth-shadow-lg);
  position: relative;
  animation: smileAuthRise 260ms var(--auth-ease-out);
}

.smile-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-charcoal);
  opacity: 0.55;
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: opacity 200ms var(--auth-ease), background 200ms var(--auth-ease);
  font-size: 22px;
  line-height: 1;
}

.smile-modal__close:hover {
  opacity: 1;
  background: var(--auth-charcoal-10);
}

.smile-modal__eyebrow {
  font-family: var(--auth-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--auth-burgundy);
  margin-bottom: 8px;
}

.smile-modal__title {
  font-family: var(--auth-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--auth-charcoal);
  margin: 0 0 12px 0;
}

.smile-modal__title em {
  font-style: italic;
  color: var(--auth-champagne);
}

.smile-modal__lead {
  font-family: var(--auth-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--auth-charcoal);
  opacity: 0.7;
  margin: 0 0 22px 0;
}

.smile-modal__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.smile-modal__success {
  text-align: center;
  padding: 16px 0 4px;
}

.smile-modal__success-ic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--auth-rose-soft);
  color: var(--auth-burgundy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.smile-modal__success-ic svg {
  width: 26px;
  height: 26px;
}

.smile-modal__success-msg {
  font-family: var(--auth-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--auth-charcoal);
  opacity: 0.8;
  margin: 0;
}

/* =====================================================================
   A11y — focus rings
   ===================================================================== */
.smile-auth :focus-visible,
.smile-modal-bd :focus-visible {
  outline: 2px solid var(--auth-champagne) !important;
  outline-offset: 2px !important;
  border-radius: 2px;
}

.smile-auth .smile-field input:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 959px) {
  .smile-auth {
    grid-template-columns: 1fr;
    grid-template-rows: 46dvh 1fr;
    position: fixed !important;
    overflow-y: auto;
  }

  .smile-auth__vis {
    min-height: 46dvh;
  }

  .smile-auth__brand { top: 20px; left: 24px; }
  .smile-auth__back { top: 22px; right: 22px; padding: 6px 12px; font-size: 12px; }

  .smile-auth__quotes {
    left: 24px;
    right: 24px;
    bottom: 48px;
    min-height: 110px;
  }

  .smile-auth__quote-text {
    font-size: 18px;
  }

  .smile-auth__dots {
    right: 24px;
    bottom: 24px;
  }

  .smile-auth__form {
    padding: 40px 28px 48px;
    align-items: flex-start;
    overflow-y: visible;
  }

  .smile-auth__panel-head h1 {
    font-size: 38px;
  }
}

@media (max-width: 719px) {
  .smile-auth__form {
    padding: 32px 22px 40px;
  }

  .smile-auth__inner {
    gap: 18px;
  }

  .smile-auth__panel-head h1 {
    font-size: 34px;
  }

  .smile-modal {
    padding: 28px 22px 24px;
  }

  .smile-modal__title {
    font-size: 24px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .smile-auth {
    grid-template-rows: 32vh 1fr;
  }

  .smile-auth__vis {
    min-height: 32vh;
  }

  .smile-auth__quotes {
    bottom: 24px;
    min-height: 70px;
  }

  .smile-auth__quote-text {
    font-size: 15px;
    max-width: none;
  }

  .smile-auth__form {
    padding: 24px;
  }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .smile-auth *,
  .smile-modal-bd * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-ken-burns="1"] .smile-auth__img.is-on {
    animation: none !important;
    transform: none !important;
  }

  .smile-auth__img {
    transition: opacity 0.001ms !important;
  }
}

/* build: 20260527-1 */

/* Smile V2 — register form additions.
   Visually-hidden honeypot, inline field errors, password match indicator, strength hint. */

.smile-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.smile-field.is-invalid > input,
.smile-field.is-invalid > .smile-field__control > input {
  border-bottom-color: #B14848 !important;
}
.smile-field.is-invalid > label {
  color: #B14848;
}
.smile-field__error {
  display: block;
  margin-top: 6px;
  min-height: 1em;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #B14848;
  line-height: 1.45;
}
.smile-field.is-invalid .smile-field__error {
  color: #B14848;
}

.smile-field__match {
  display: block;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  min-height: 1em;
  color: #6B6360;
}
.smile-field__match[data-state="ok"] { color: #2E7D32; }
.smile-field__match[data-state="fail"] { color: #B14848; }

.smile-password-strength__hint {
  display: block;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6B6360;
}
.smile-password-strength[data-score="1"] .smile-password-strength__hint { color: #B14848; }
.smile-password-strength[data-score="2"] .smile-password-strength__hint { color: #B8924F; }
.smile-password-strength[data-score="3"] .smile-password-strength__hint { color: #4D7C44; }
.smile-password-strength[data-score="4"] .smile-password-strength__hint { color: #2E7D32; }

.smile-auth__form-error,
.smile-auth__form-success {
  padding: 12px 14px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 12px;
}
.smile-auth__form-error {
  background: #FCE9E9;
  color: #7B1F1F;
  border-left: 3px solid #B14848;
}
.smile-auth__form-success {
  background: #E8F5E9;
  color: #1B5E20;
  border-left: 3px solid #4D7C44;
}

/* build: 20260528-reg-1 */


/* ------------------------------------------------------------------------
   Social buttons — defensive overrides.
   Higher specificity (.smile-auth .smile-auth__socials .smile-soc) +
   !important on visual props to defeat any global/bootstrap cascade.
   ------------------------------------------------------------------------ */

.smile-auth .smile-auth__socials .smile-soc,
.smile-auth__socials > .smile-soc {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #ffffff !important;
  color: #2C2823 !important;
  border: 1px solid #E4DCCB !important;
  border-radius: 4px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: 0 !important;
  text-shadow: none !important;
}

.smile-auth .smile-auth__socials .smile-soc:hover,
.smile-auth__socials > .smile-soc:hover {
  border-color: rgba(44, 40, 35, 0.4) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(44, 40, 35, 0.06) !important;
  background: #ffffff !important;
  color: #2C2823 !important;
}

.smile-auth .smile-auth__socials .smile-soc svg,
.smile-auth__socials > .smile-soc svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.smile-auth .smile-auth__socials .smile-soc--apple,
.smile-auth__socials > .smile-soc--apple {
  background: #2C2823 !important;
  color: #FAF7F2 !important;
  border-color: #2C2823 !important;
}
.smile-auth .smile-auth__socials .smile-soc--apple:hover,
.smile-auth__socials > .smile-soc--apple:hover {
  background: #1f1c18 !important;
  border-color: #1f1c18 !important;
  color: #FAF7F2 !important;
}

.smile-auth .smile-auth__socials .smile-soc--facebook,
.smile-auth__socials > .smile-soc--facebook {
  background: #1877F2 !important;
  color: #ffffff !important;
  border-color: #1877F2 !important;
}
.smile-auth .smile-auth__socials .smile-soc--facebook:hover,
.smile-auth__socials > .smile-soc--facebook:hover {
  background: #1565d8 !important;
  border-color: #1565d8 !important;
  color: #ffffff !important;
}

/* build: 20260530-soc-hard */
