:root {
  --navy-950: #031a36;
  --navy-900: #062f60;
  --navy-800: #124a78;
  --gold-500: #b78a43;
  --gold-300: #d8b575;
  --ivory: #fbfaf6;
  --ink: #102d49;
  --muted: #63717b;
  --danger: #b13d46;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); }
.portal-body { background: var(--navy-950); }
.portal-shell {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(1rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
  background-image: linear-gradient(90deg, rgba(3,20,40,.72) 0%, rgba(4,25,48,.48) 39%, rgba(4,25,48,.06) 73%), url('../images/hotel-hero-formal.webp');
  background-size: cover;
  background-position: center;
}
.portal-shell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,14,29,.02), rgba(2,14,29,.36)); }
.portal-ambient { position: absolute; left: -11rem; top: -13rem; width: 31rem; height: 31rem; border-radius: 50%; background: rgba(183,138,67,.1); filter: blur(70px); z-index: -1; }
.portal-panel {
  position: relative;
  width: min(100%, 30.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(183,138,67,.34);
  border-radius: 1.1rem;
  background: rgba(251,250,246,.97);
  box-shadow: 0 28px 75px rgba(1,18,35,.3);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.portal-panel::after { content: ""; position: absolute; inset: 0 0 auto; height: .22rem; background: linear-gradient(90deg, var(--navy-900), var(--gold-500), var(--navy-900)); }
.brand-lockup { display: flex; align-items: center; gap: .85rem; margin-bottom: 2.25rem; }
.brand-lockup-official { flex-direction: column; align-items: flex-start; gap: .25rem; margin-bottom: 1rem; }
.official-logo-frame { display: block; width: 10rem; height: 6.65rem; overflow: hidden; }
.official-logo-frame img { display: block; width: 100%; height: auto; transform: translateY(-1.75rem); mix-blend-mode: multiply; }
.brand-name, .brand-caption { display: block; }
.brand-name { color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.06rem; letter-spacing: .18em; font-weight: 700; }
.brand-caption { color: #7c694c; font-size: .66rem; letter-spacing: .18em; font-weight: 750; text-transform: uppercase; }
.eyebrow { display: block; margin-bottom: .65rem; color: #9a6734; font-size: .73rem; letter-spacing: .2em; font-weight: 800; text-transform: uppercase; }
.welcome-copy h1, .success-panel h1 { margin: 0; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 2.45rem); line-height: 1.04; letter-spacing: -.035em; }
.welcome-copy p, .success-panel p { margin: .85rem 0 1.35rem; color: var(--muted); line-height: 1.65; }
.portal-form { display: grid; gap: 1rem; }
.form-field { min-width: 0; }
.form-label { margin-bottom: .42rem; color: #314755; font-size: .82rem; font-weight: 700; }
.input-shell { position: relative; }
.input-shell svg { position: absolute; left: 1rem; top: 50%; width: 1.15rem; transform: translateY(-50%); fill: none; stroke: #768995; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input-shell .form-control { height: 3.35rem; padding: .75rem 1rem .75rem 3rem; border: 1px solid #d8deda; border-radius: .85rem; background: rgba(255,255,255,.82); color: var(--ink); font-size: .98rem; box-shadow: none; }
.input-shell .form-control::placeholder { color: #9ba6ac; }
.input-shell .form-control:focus { border-color: var(--gold-500); box-shadow: 0 0 0 .22rem rgba(189,138,80,.14); }
.field-validation { display: block; min-height: .25rem; margin-top: .3rem; color: var(--danger); font-size: .76rem; }
.field-validation-valid { display: none; }
.validation-summary:empty, .validation-summary-valid { display: none; }
.validation-summary { padding: .85rem 1rem; border: 1px solid #f0c8cb; border-radius: .8rem; background: #fff2f3; color: #8c2931; font-size: .85rem; }
.validation-summary ul { margin: 0; padding-left: 1.1rem; }
.connect-button { height: 3.5rem; display: flex; align-items: center; justify-content: center; gap: .65rem; margin-top: .35rem; border: 0; border-radius: .72rem; background: linear-gradient(135deg, #0b3b70, #05274e); color: #fff; font-weight: 750; letter-spacing: .01em; box-shadow: 0 10px 24px rgba(5,47,96,.22); transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.connect-button:hover, .connect-button:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(11,38,55,.3); }
.connect-button:disabled { opacity: .52; transform: none; }
.connect-button svg { width: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-spinner { display: none; }
.connect-button.is-loading .button-spinner { display: inline-block; }
.connect-button.is-loading svg { display: none; }
.network-chip { display: flex; align-items: center; gap: .5rem; margin-top: 1.05rem; padding-top: .9rem; border-top: 1px solid #e2e3de; color: #536975; font-size: .76rem; font-weight: 650; }
.network-pulse { width: .48rem; height: .48rem; border-radius: 50%; background: #4f9e72; box-shadow: 0 0 0 .24rem rgba(79,158,114,.13); }
.secure-label { margin-left: auto; color: #78878e; font-weight: 500; }
.legal-copy { margin: .85rem 0 0; color: #7a878d; font-size: .71rem; line-height: 1.55; }
.legal-copy a { color: #425f70; text-underline-offset: .16rem; }
.portal-alert { margin-bottom: 1.25rem; border-radius: .8rem; font-size: .84rem; }
.portal-alert strong { display: block; }
.portal-footer { position: absolute; right: clamp(1rem, 4vw, 3.5rem); bottom: 1.4rem; display: flex; gap: 1.5rem; color: rgba(255,255,255,.66); font-size: .7rem; letter-spacing: .04em; }
.success-shell { justify-items: center; background-image: linear-gradient(rgba(3,20,40,.48), rgba(3,20,40,.62)), url('../images/hotel-hero-formal.webp'); }
.success-panel { text-align: center; }
.brand-lockup-centered { align-items: center; justify-content: center; margin-bottom: 1rem; }
.success-icon { width: 5rem; height: 5rem; display: grid; place-items: center; margin: 0 auto 1.4rem; border-radius: 50%; background: #e4f4e9; color: #2c8050; box-shadow: 0 0 0 .55rem rgba(79,158,114,.08); }
.success-icon svg { width: 2.5rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.success-link { width: 100%; text-decoration: none; }
.success-panel small { display: block; margin-top: 1rem; color: #839099; }
.error-icon { width: 4.5rem; height: 4.5rem; display: grid; place-items: center; margin: 0 auto 1.3rem; border-radius: 50%; background: #fff0f0; color: var(--danger); font-size: 2rem; font-weight: 800; }
.legal-shell { min-height: 100vh; padding: clamp(1rem, 5vw, 4rem); background: linear-gradient(145deg, #0b2232, #173b50); }
.legal-card { width: min(100%, 54rem); margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem); border-radius: 1.4rem; background: #faf8f3; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.legal-card h1 { margin: 1rem 0 .25rem; font-family: Georgia, serif; color: var(--navy-900); }
.legal-card h2 { margin: 2rem 0 .55rem; color: var(--navy-800); font-size: 1.15rem; }
.legal-card p { color: #566975; line-height: 1.75; }
.legal-updated { font-size: .8rem; }
.back-link { color: #526b79; text-decoration: none; font-size: .85rem; }
.legal-note { margin-top: 2rem; padding: 1rem; border-left: 3px solid var(--gold-500); background: #f2ece3; font-size: .83rem; }
.legal-brand { margin: 1.1rem 0 1.35rem; }

@media (max-width: 700px) {
  .portal-shell { align-items: end; padding: 4rem .7rem .7rem; background-position: 67% center; }
  .portal-shell::before { background: linear-gradient(180deg, rgba(3,20,40,.12) 0%, rgba(3,20,40,.68) 48%, rgba(3,20,40,.86) 100%); }
  .portal-panel { width: 100%; padding: 1.35rem; border-radius: 1rem; }
  .brand-lockup { margin-bottom: 1.35rem; }
  .brand-lockup-official { margin-bottom: 1rem; }
  .official-logo-frame { width: 9.75rem; height: 6.55rem; }
  .official-logo-frame img { transform: translateY(-1.7rem); }
  .welcome-copy h1, .success-panel h1 { font-size: 2.05rem; }
  .welcome-copy p { margin-bottom: 1.25rem; }
  .portal-footer { display: none; }
  .success-shell { align-items: center; padding-top: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
