:root {
  --ink: #2c343b;
  --ink-soft: #65727a;
  --paper: #fffdf9;
  --cream: #f2f6f8;
  --white: #fff;
  --solano-blue: #79a1c1;
  --solano-gold: #e39d3f;
  --solano-coral: #d87351;
  --deep-blue: #385f78;
  --line: rgba(44, 52, 59, .14);
  --shadow: 0 28px 80px rgba(38, 56, 68, .18);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }

.portal-header {
  position: relative;
  z-index: 10;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(22px, 5vw, 76px);
  background: rgba(255, 253, 249, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(32, 43, 51, .05);
}
.portal-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--solano-gold) 0 33.333%, var(--solano-coral) 33.333% 66.666%, var(--solano-blue) 66.666%);
}
.havana-brand { display: inline-flex; align-items: center; margin-right: auto; }
.havana-brand img { display: block; width: 178px; height: 54px; object-fit: contain; object-position: left center; filter: brightness(0); }
/* Keep the language control sized before JavaScript starts. */
.havana-language-switcher { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(29,53,72,.16); border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(29,53,72,.08); flex: 0 0 auto; z-index: 30; }
.havana-language-switcher button { min-width: 28px; height: 27px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: #536571; font: 700 10px/1 Inter,Poppins,sans-serif; letter-spacing: .06em; cursor: pointer; }
.havana-language-switcher button:hover { background: #edf4f7; color: #1d3548; }
.havana-language-switcher button.is-active { background: #1d5e80; color: #fff; box-shadow: 0 3px 10px rgba(29,94,128,.24); }
@media (max-width: 760px) { .havana-language-switcher { padding: 2px; } .havana-language-switcher button { min-width: 25px; height: 25px; padding: 0 4px; font-size: 9px; } }
/* Match the reservation header: one stable action group on both pages. */
.header-actions { display: flex; align-items: center; gap: 9px; padding: 6px; border: 1px solid rgba(44,52,59,.1); border-radius: 17px; background: rgba(255,255,255,.78); box-shadow: 0 10px 28px rgba(44,52,59,.07); }
.back-link { order: 1; min-height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; border-radius: 12px; background: #202b33; color: white; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.back-link:hover { transform: translateY(-2px); background: var(--solano-coral); box-shadow: 0 8px 18px rgba(216,115,81,.22); }
.back-link svg { width: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.header-actions > .havana-language-switcher { order: 2; border-color: transparent !important; background: #edf4f7 !important; box-shadow: none !important; }
.powered { order: 3; min-height: 42px; display: grid; grid-template-columns: auto 96px; align-items: center; gap: 9px; padding: 0 6px 0 14px; border-left: 1px solid rgba(44,52,59,.12); color: #6d777e; }
.powered span { font-size: 9px; font-weight: 800; letter-spacing: .08em; line-height: 1.15; text-transform: uppercase; white-space: nowrap; }
.powered img { display: block; width: 96px; height: 34px; object-fit: contain; mix-blend-mode: multiply; }

.portal-shell { min-height: calc(100svh - 84px); display: grid; grid-template-columns: minmax(540px, .92fr) minmax(500px, 1.08fr); }
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(44px, 6vh, 76px) clamp(28px, 6vw, 100px); background: var(--paper); overflow: hidden; }
.auth-panel::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: -230px;
  top: -225px;
  border: 1px solid rgba(121, 161, 193, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(216, 115, 81, .055), 0 0 0 96px rgba(227, 157, 63, .04);
}
.auth-wrap { position: relative; z-index: 1; width: min(100%, 560px); }
.eyebrow { margin: 0 0 16px; color: var(--solano-coral); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.view[hidden] { display: none; }
.view-heading h1, .view-heading h2, .welcome-content h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
.view-heading h1 { margin: 0; font-size: clamp(50px, 5vw, 76px); line-height: .98; }
.view-heading h2 { margin: 0; font-size: clamp(42px, 4.2vw, 62px); line-height: .98; }
.view-heading em { color: #557f9e; font-weight: 500; }
.view-heading p { max-width: 510px; margin: 20px 0 30px; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.view-heading.compact p { margin-bottom: 24px; }

.auth-form { display: grid; gap: 17px; }
.form-field { display: block; min-width: 0; }
.form-field > span:first-child { display: block; margin: 0 0 7px 2px; color: #68747b; font-size: 12px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.input-wrap { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.input-wrap:focus-within { border-color: var(--solano-blue); box-shadow: 0 0 0 4px rgba(121, 161, 193, .14); background: #fff; }
.input-wrap > svg { width: 20px; flex: 0 0 20px; fill: none; stroke: #7590a1; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap input { width: 100%; min-width: 0; height: 54px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.input-wrap input::placeholder { color: #a2aaaf; }
.password-toggle { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: transparent; color: #77848b; }
.password-toggle:hover { background: var(--cream); color: var(--deep-blue); }
.password-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.password-toggle.is-visible { color: var(--solano-coral); }

.form-options { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.check-field { display: inline-flex; align-items: flex-start; gap: 9px; color: #67737a; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check-field input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--deep-blue); }
.text-button { padding: 5px 0; background: transparent; color: var(--deep-blue); font-size: 14px; font-weight: 800; }
.text-button:hover { color: var(--solano-coral); }
.primary-button { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 21px; border-radius: 16px; background: var(--solano-gold); color: var(--ink); font-size: 16px; font-weight: 800; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.primary-button:hover { transform: translateY(-2px); background: var(--solano-coral); color: white; box-shadow: 0 13px 26px rgba(216, 115, 81, .25); }
.primary-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.primary-button[aria-busy="true"] { pointer-events: none; opacity: .78; }
.form-message { margin: -3px 0 0; padding: 12px 14px; border-radius: 12px; background: #fae8e2; color: #9b3e2e; font-size: 14px; font-weight: 700; line-height: 1.45; }
.form-message.is-info { background: #e8f1f7; color: #315c77; }
.account-switch { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); color: #69757c; font-size: 14px; }
.account-switch button { padding: 4px; background: transparent; color: var(--deep-blue); font-weight: 800; }
.account-switch button:hover { color: var(--solano-coral); }
.support-line { display: flex; justify-content: center; gap: 7px; margin-top: 25px; color: #7b858a; font-size: 13px; }
.support-line a { color: var(--deep-blue); font-weight: 800; text-decoration: none; }

.view-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 20px; padding: 4px 0; background: transparent; color: var(--deep-blue); font-size: 14px; font-weight: 800; }
.view-back svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.register-form { gap: 14px; }
.register-form .input-wrap { min-height: 54px; }
.register-form .input-wrap input { height: 50px; }
.form-field small { display: block; margin: 7px 2px 0; color: #8a9398; font-size: 12px; }
.password-meter { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px !important; }
.password-meter i { height: 4px; border-radius: 99px; background: #dce2e5; transition: background .2s ease; }
.password-meter[data-strength="1"] i:nth-child(1) { background: var(--solano-coral); }
.password-meter[data-strength="2"] i:nth-child(-n+2) { background: var(--solano-gold); }
.password-meter[data-strength="3"] i { background: var(--solano-blue); }

.password-requirements { margin-top: 12px; padding: 14px 15px; border: 1px solid #dbe3e7; border-radius: 14px; background: #f8faf9; color: #65747c; }
.password-requirements > strong { display: block; margin-bottom: 8px; color: #52636b; font-size: 14px; }
.password-requirements p { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 14px; line-height: 1.35; }
.password-requirements > div { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding-left: 18px; }
.password-requirements p span { display: inline-grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%; background: #e7ecef; color: #87949a; font-weight: 900; }
.password-requirements p.is-valid { color: #24794a; }
.password-requirements p.is-valid span { background: #2f9b63; color: white; }
.password-match { margin-top: 8px; font-weight: 800; }
.password-match.is-valid { color: #24794a; }
.password-match.is-invalid { color: #a84232; }
.register-success { padding: 28px 24px; border-radius: 22px; background: #eef6fb; text-align: center; color: #294f67; }
.register-success > span { display: grid; width: 54px; height: 54px; margin: 0 auto 16px; place-items: center; border-radius: 50%; background: #2f9b63; color: white; font-size: 28px; font-weight: 900; }
.register-success h3 { margin: 0; color: var(--deep-blue); font-size: 24px; }
.register-success p { margin: 10px 0 0; line-height: 1.55; }
.register-success .verification-banner { margin: 18px 0; padding: 13px 14px; border-radius: 12px; background: white; font-weight: 800; }

@media (max-width: 560px) {
  .password-requirements > div { grid-template-columns: 1fr; }
}
.terms { margin: 2px 0; }
.reset-symbol { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 20px; background: #e8f1f7; color: #557f9e; }
.reset-symbol svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.welcome-panel { position: relative; min-height: 690px; display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(72px, 9vh, 108px) 0; overflow: hidden; background: var(--deep-blue); color: white; }
.welcome-slides { position: absolute; z-index: 0; inset: 0; overflow: hidden; background: var(--deep-blue); }
.welcome-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% center; opacity: 0; filter: saturate(.86) contrast(.96); transform: scale(1.025); transition: opacity .4s ease, transform 7s linear; }
.welcome-slide.is-active { z-index: 1; opacity: 1; transform: scale(1); }
.welcome-slide.is-entering { z-index: 2; opacity: 1; transform: scale(1); }
.slide-pool-original, .slide-pool { object-position: 52% center; }
.slide-train { object-position: 45% center; }
.slide-show-original, .slide-show { object-position: 54% center; }
.slide-rv-lane { object-position: 50% center; }
.slide-rv-site-original { object-position: right center; }
.slide-rv-site { object-position: 18% center; }
.welcome-overlay { position: absolute; z-index: 1; inset: 0; background: linear-gradient(115deg, rgba(30, 45, 54, .9) 0%, rgba(46, 76, 94, .79) 54%, rgba(56, 95, 120, .54) 100%); }
.colour-ribbon { position: absolute; z-index: 3; top: 0; right: 0; display: flex; height: 18px; width: 50%; box-shadow: 0 7px 24px rgba(32, 43, 51, .16); }
.colour-ribbon i { flex: 1; }
.colour-ribbon i:nth-child(1) { background: var(--solano-gold); }
.colour-ribbon i:nth-child(2) { background: var(--solano-coral); }
.colour-ribbon i:nth-child(3) { background: var(--solano-blue); }
.reserve-badge { position: absolute; z-index: 4; top: clamp(92px, 11vh, 132px); right: clamp(28px, 3.6vw, 62px); width: clamp(128px, 8.7vw, 150px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: var(--solano-gold); color: var(--ink); box-shadow: 0 8px 0 var(--solano-coral), 0 20px 42px rgba(20,35,45,.28); text-align: center; text-decoration: none; transform: rotate(3deg); transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.reserve-badge small { font-size: 10px; font-weight: 900; letter-spacing: .1em; line-height: 1.25; text-transform: uppercase; }
.reserve-badge strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(23px, 1.7vw, 28px); font-weight: 500; letter-spacing: -.035em; }
.reserve-badge span { font-size: 20px; line-height: 1; }
.reserve-badge:hover { background: #efb553; box-shadow: 0 13px 0 var(--solano-coral), 0 28px 58px rgba(20,35,45,.34); transform: translateY(-4px) rotate(0); }
.welcome-content { position: relative; z-index: 2; width: min(680px, calc(100% - 80px)); margin: 0 auto; }
.welcome-topline { max-width: 650px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.mini-label { display: flex; align-items: center; gap: 10px; margin: 0; color: #f5c66f; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mini-label span { width: 30px; height: 2px; background: currentColor; }
.welcome-content h2 { max-width: 650px; margin: 0; font-size: clamp(46px, 5.1vw, 78px); line-height: .98; }
.welcome-content h2 em { color: #f1b75f; font-weight: 500; }
.welcome-content > p:not(.mini-label) { max-width: 570px; margin: 25px 0 36px; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.65; }
.benefit-list { display: grid; gap: 10px; max-width: 540px; }
.benefit-list article { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.benefit-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 13px; color: white; }
.benefit-icon.blue { background: var(--solano-blue); }
.benefit-icon.gold { background: var(--solano-gold); color: var(--ink); }
.benefit-icon.coral { background: var(--solano-coral); }
.benefit-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.benefit-list strong { display: block; font-size: 15px; }
.benefit-list small { display: block; margin-top: 2px; color: rgba(255,255,255,.66); font-size: 13px; }
.stay-card { position: relative; z-index: 3; min-height: 46px; flex: 0 0 auto; display: none; align-items: center; gap: 10px; padding: 0 7px 0 17px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255, 253, 249, .96); color: var(--ink); box-shadow: 0 12px 30px rgba(20, 35, 45, .2); font-size: 13px; font-weight: 800; text-decoration: none; backdrop-filter: blur(15px); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.stay-card:hover { transform: translateY(-3px); background: var(--white); box-shadow: 0 24px 54px rgba(20, 35, 45, .3); }
.stay-arrow { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--solano-gold); color: var(--ink); font-size: 18px; transition: transform .2s ease, background .2s ease; }
.stay-card:hover .stay-arrow { transform: translateX(3px); background: var(--solano-coral); color: white; }

.slideshow-control { position: absolute; z-index: 5; right: clamp(22px, 3vw, 48px); bottom: 28px; width: 64px; height: 64px; display: grid; place-items: center; padding: 0; border-radius: 50%; background: rgba(24, 43, 54, .7); color: white; box-shadow: 0 14px 34px rgba(12, 28, 38, .28); backdrop-filter: blur(12px); transition: transform .2s ease, background .2s ease; }
.slideshow-control:hover { transform: translateY(-3px); background: rgba(24, 43, 54, .88); }
.slideshow-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.slideshow-ring circle { fill: none; stroke-width: 2.4; }
.ring-track { stroke: rgba(255,255,255,.24); }
.ring-progress { stroke: var(--solano-gold); stroke-linecap: round; stroke-dasharray: 125.664; stroke-dashoffset: 0; }
.slideshow-control.is-running .ring-progress { animation: slide-countdown 7s linear forwards; }
.slide-count { position: relative; display: flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.slide-count strong { font-size: 16px; line-height: 1; }
.slide-count i { width: 1px; height: 15px; background: rgba(255,255,255,.45); transform: rotate(18deg); }
.slide-count span { color: rgba(255,255,255,.68); font-size: 11px; line-height: 1; }
@keyframes slide-countdown { to { stroke-dashoffset: 125.664; } }

.primary-button:focus-visible, .password-toggle:focus-visible, .text-button:focus-visible, .view-back:focus-visible, .account-switch button:focus-visible, .back-link:focus-visible, .stay-card:focus-visible, .reserve-badge:focus-visible, .slideshow-control:focus-visible { outline: 3px solid rgba(121, 161, 193, .5); outline-offset: 3px; }

@media (min-width: 1200px) and (max-width: 1499px) {
  .reserve-badge { top: 78px; right: 28px; width: 122px; padding: 16px; }
  .reserve-badge strong { font-size: 24px; }
}

@media (max-width: 1199px) {
  .reserve-badge { display: none; }
  .stay-card { display: inline-flex; }
}

@media (max-width: 1080px) {
  .portal-shell { grid-template-columns: 1fr; }
  .auth-panel { min-height: calc(100svh - 82px); }
  .welcome-panel { min-height: 760px; }
}

@media (max-width: 640px) {
  .portal-header { min-height: 68px; padding: 8px 14px; }
  .havana-brand img { width: 132px; height: 48px; }
  .header-actions { gap: 5px; padding: 3px; border-radius: 14px; }
  .back-link { width: 40px; min-height: 38px; justify-content: center; padding: 0; border-radius: 10px; font-size: 0; }
  .powered { display: none; }
  .header-actions > .havana-language-switcher { padding: 2px !important; }
  .portal-shell { min-height: calc(100svh - 68px); }
  .auth-panel { min-height: calc(100svh - 68px); align-items: flex-start; padding: 48px 20px 35px; }
  .view-heading h1 { font-size: clamp(46px, 14vw, 60px); }
  .view-heading h2 { font-size: clamp(40px, 12vw, 54px); }
  .view-heading p { margin: 18px 0 25px; font-size: 15px; }
  .input-wrap { min-height: 55px; }
  .field-row { grid-template-columns: 1fr; }
  .form-options { align-items: flex-start; }
  .account-switch { flex-direction: column; gap: 3px; text-align: center; }
  .support-line { margin-top: 20px; }
  .welcome-panel { min-height: 720px; padding: 72px 0; }
  .colour-ribbon { width: 68%; height: 14px; }
  .welcome-content { width: calc(100% - 40px); }
  .welcome-topline { gap: 10px; }
  .mini-label { font-size: 11px; letter-spacing: .1em; }
  .welcome-content h2 { font-size: 46px; }
  .welcome-content > p:not(.mini-label) { font-size: 15px; }
  .benefit-list small { line-height: 1.35; }
  .stay-card { min-height: 42px; padding-left: 13px; }
  .slideshow-control { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .slide-pool { object-position: 58% center; }
  .slide-train { object-position: 43% center; }
  .slide-show { object-position: 54% center; }
  .slide-rv-site-original { object-position: 68% center; }
  .slide-rv-site { object-position: 12% center; }
}

@media (max-height: 820px) and (min-width: 1081px) {
  .auth-panel { align-items: flex-start; overflow-y: auto; }
  .portal-shell { min-height: 800px; }
  .welcome-panel { padding: 68px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .slideshow-control.is-running .ring-progress { animation: none; }
}
