/* Navie Hotel/Shows glass surfaces; original Equipe Morcego artwork and form proportions. */
:root {
    color-scheme: dark;
    --auth-bg: #191512;
    --auth-panel: rgb(43 34 29 / 76%);
    --auth-brand-surface: rgb(31 25 21 / 45%);
    --auth-solid: #2c241f;
    --auth-input: rgb(24 20 17 / 94%);
    --auth-input-focus: #241d18;
    --auth-border: rgb(255 231 209 / 24%);
    --auth-glass-border: rgb(255 239 223 / 20%);
    --auth-text: #faf5f0;
    --auth-silver: #e4d9cf;
    --auth-muted: #c9bcb0;
    --auth-placeholder: #b3a79c;
    --auth-primary: #f97316;
    --auth-primary-hover: #fb923c;
    --auth-accent-text: #ffb37e;
    --auth-focus: rgb(249 115 22 / 24%);
    --auth-glass-filter: blur(24px) saturate(115%);
    --auth-reflection: linear-gradient(135deg, rgb(255 240 222 / 10%), transparent 44%, rgb(249 115 22 / 3%));
    --auth-shadow: inset 0 1px 0 rgb(255 238 220 / 15%), 0 24px 64px rgb(0 0 0 / 25%);
    --auth-ambient: radial-gradient(ellipse at 7% 15%, rgb(249 115 22 / 23%), transparent 43%), radial-gradient(ellipse at 84% 80%, rgb(163 48 29 / 21%), transparent 45%), linear-gradient(145deg, #211911, #2d2420 50%, #181412);
    --auth-error-bg: #412723; --auth-error-text: #ffb5aa; --auth-error-border: #875345;
    --auth-success-bg: #22352a; --auth-success-text: #b5e5cb; --auth-success-border: #49745c;
    --auth-warning-bg: #403021; --auth-warning-text: #ffdbb3; --auth-warning-border: #87623b;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.auth-page {
    background-color: var(--auth-bg);
    background-image: var(--auth-ambient);
    background-size: cover;
    color: var(--auth-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.auth-page svg { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.7; }
.auth-page a { text-decoration: none; }
.auth-page :focus-visible { outline: 2px solid var(--auth-primary); outline-offset: 5px; }
.auth-skip-link {
    position: fixed;
    z-index: 20;
    top: 12px;
    left: 12px;
    transform: translateY(-180%);
    background: var(--auth-text);
    color: var(--auth-bg);
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
}
.auth-skip-link:focus { transform: translateY(0); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr); min-height: 100vh; min-height: 100svh; }
.auth-brand {
    position: sticky;
    isolation: isolate;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 620px;
    height: 100vh;
    height: 100svh;
    padding: clamp(36px, 4.5vw, 72px);
    background: var(--auth-reflection), var(--auth-brand-surface);
    border-right: 1px solid var(--auth-glass-border);
    box-shadow: inset -1px 0 0 var(--auth-glass-border), 12px 0 48px rgb(0 0 0 / 3%);
}
.auth-brand-link { display: inline-flex; width: fit-content; align-items: center; gap: 20px; align-self: flex-start; }
.auth-brand-name { color: var(--auth-text); font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.auth-brand-name small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--auth-muted); letter-spacing: .02em; }
.auth-logo { display: block; width: 92px; height: auto; object-fit: contain; background: transparent; border: 0; border-radius: 0; box-shadow: none; filter: none; }
.auth-brand-content { padding: 64px 0; max-width: 600px; margin-block: auto; }
.auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--auth-muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.auth-brand-rule { display: block; width: 24px; height: 2px; background: var(--auth-primary); }
.auth-brand h2 { margin: 0; font-size: clamp(44px, 4.5vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -.055em; }
.auth-brand-description { max-width: 460px; margin: 24px 0 0; color: var(--auth-muted); font-size: 16px; line-height: 1.75; }
.auth-brand-footer { color: var(--auth-muted); font-size: 12px; font-weight: 500; }
.auth-brand-footer span { display: flex; align-items: center; gap: 10px; }
.auth-brand-footer svg { width: 18px; color: var(--auth-primary); }
.auth-form-side { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 100vh; min-height: 100svh; padding: 36px clamp(28px, 4.5vw, 72px) 28px; }
.auth-form-topbar { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 42px; }
.auth-return { display: inline-flex; align-items: center; min-height: 36px; gap: 8px; color: var(--auth-muted); font-size: 13px; font-weight: 500; transition: color .18s ease; }
.auth-return svg { width: 15px; height: 15px; }
.auth-return:hover { color: var(--auth-text); }
.auth-platform-name { color: var(--auth-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.auth-form-panel { position: relative; isolation: isolate; width: 100%; max-width: 430px; margin: auto 0; }
.auth-form-panel::before { content: ""; position: absolute; z-index: -1; inset: -30px -32px; border: 1px solid var(--auth-glass-border); border-radius: 28px; background: var(--auth-reflection), var(--auth-panel); box-shadow: var(--auth-shadow); -webkit-backdrop-filter: var(--auth-glass-filter); backdrop-filter: var(--auth-glass-filter); pointer-events: none; }
.auth-form-panel:focus { outline: none; }
.auth-form-header { margin-bottom: 32px; }
.auth-form-header .auth-eyebrow { margin-bottom: 12px; color: var(--auth-accent-text); }
.auth-form-header h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.045em; line-height: 1.2; }
.auth-description { margin: 12px 0 0; color: var(--auth-muted); font-size: 14px; line-height: 1.65; }
.auth-form { display: grid; gap: 22px; }
.auth-field { display: grid; gap: 8px; min-width: 0; }
.auth-field label { color: var(--auth-silver); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap input {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    background: var(--auth-input);
    color: var(--auth-text);
    padding: 14px 18px 14px 50px;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.auth-input-wrap input::placeholder { color: var(--auth-placeholder); opacity: 1; font-size: 15px; }
.auth-input-wrap input:hover { border-color: var(--auth-muted); }
.auth-input-wrap input:focus { outline: none; border-color: var(--auth-primary); background: var(--auth-input-focus); box-shadow: 0 0 0 3px var(--auth-focus); }
.auth-input-wrap input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--auth-solid) inset; -webkit-text-fill-color: var(--auth-text); caret-color: var(--auth-text); }
.auth-input-icon { position: absolute; z-index: 1; left: 18px; top: 50%; transform: translateY(-50%); color: var(--auth-muted); pointer-events: none; }
.auth-input-wrap .auth-input-icon { width: 18px; height: 18px; }
.auth-input-wrap:focus-within .auth-input-icon { color: var(--auth-primary); }
.auth-input-wrap-password input { padding-right: 52px; }
.auth-input-wrap-plain input { padding-left: 16px; }
.auth-password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 8px; background: transparent; color: var(--auth-muted); cursor: pointer; }
.auth-password-toggle > span { display: inline-flex; align-items: center; justify-content: center; }
.auth-password-toggle svg { width: 18px; height: 18px; }
.auth-password-toggle:hover { color: var(--auth-text); background: rgba(255, 255, 255, .04); }
.auth-password-toggle:focus-visible { outline-offset: 0; }
.auth-field-hint { margin: 0; color: var(--auth-muted); font-size: 13px; }
.auth-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    padding: 14px 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--auth-primary);
    color: #17100b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}
.auth-submit svg { width: 18px; height: 18px; }
.auth-submit:hover { background: var(--auth-primary-hover); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.auth-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--auth-border); color: var(--auth-muted); font-size: 13px; }
.auth-switch a { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; color: var(--auth-silver); font-weight: 600; }
.auth-switch a:hover { color: var(--auth-accent-text); }
.auth-switch svg { width: 14px; height: 14px; }
.auth-form-footer { width: 100%; padding-top: 48px; text-align: center; color: var(--auth-muted); font-size: 12px; line-height: 1.6; }
.auth-messages { display: grid; gap: 10px; margin-bottom: 24px; }
.auth-message { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--auth-border); border-radius: 16px; padding: 14px; background: var(--auth-solid); color: var(--auth-silver); font-size: 14px; line-height: 1.6; }
.auth-message svg { width: 18px; height: 18px; margin-top: 1px; }
.auth-message p { margin: 0; overflow-wrap: anywhere; }
.auth-message-error { border-color: var(--auth-error-border); background: var(--auth-error-bg); color: var(--auth-error-text); }
.auth-message-success { border-color: var(--auth-success-border); background: var(--auth-success-bg); color: var(--auth-success-text); }
.auth-message-warning { border-color: var(--auth-warning-border); background: var(--auth-warning-bg); color: var(--auth-warning-text); }
.auth-location-grid { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 16px; }
.auth-state-input { text-transform: uppercase; }
.auth-register .auth-form-panel { max-width: 500px; }
.auth-register .auth-form-header h1 { font-size: 34px; }
.auth-register .auth-form { gap: 18px; }
.auth-register .auth-form-header { margin-bottom: 28px; }

@media (min-width: 961px) and (max-height: 720px) {
    .auth-brand { padding: 32px; min-height: 0; }.auth-brand-content { padding: 36px 0; }.auth-brand h2 { font-size: 48px; }
}
@media (min-width: 961px) {
    .auth-brand::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url('../img/trail-tread.svg') repeat-y right -44px top / 144px 72px; opacity: .08; pointer-events: none; }
}
@media (max-width: 1100px) and (min-width: 961px) {
    .auth-brand,.auth-form-side { padding-left: 32px; padding-right: 32px; }.auth-brand-name { font-size: 18px; }.auth-logo { width: 76px; }
}
@media (max-width: 960px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-brand { position: static; height: 180px; min-height: 0; padding: 28px; justify-content: center; align-items: center; border: 0; border-bottom: 1px solid var(--auth-border); }
    .auth-brand-link { align-self: center; gap: 24px; }.auth-logo { width: 112px; }.auth-brand-name { font-size: 23px; }
    .auth-brand-content,.auth-brand-footer { display: none; }
    .auth-form-side { min-height: 0; padding: 24px 28px 28px; }.auth-form-topbar { max-width: 500px; padding-bottom: 30px; }
    .auth-form-panel { max-width: 500px; margin: 0; }.auth-form-header h1 { font-size: 30px; }.auth-form-footer { max-width: 500px; padding-top: 40px; }
    .auth-form-panel::before { inset: -20px -14px; border-radius: 24px; }
}
@media (max-width: 480px) {
    .auth-brand { height: 160px; padding: 24px; }.auth-logo { width: 94px; }.auth-brand-name { font-size: 21px; }
    .auth-form-side { padding: 20px 22px 28px; }.auth-form-header h1,.auth-register .auth-form-header h1 { font-size: 28px; }
    .auth-form-topbar { padding-bottom: 26px; }.auth-location-grid { grid-template-columns: minmax(0,1fr) 100px; gap: 16px; }
    .auth-form-panel::before { inset-inline: -12px; }
}
/* The short login form fits the viewport; longer account forms keep their natural flow. */
.auth-login .auth-layout { position: relative; }
.auth-login .auth-brand { min-height: 0; height: auto; }
.auth-login .auth-form-side { min-height: 0; padding-block: clamp(16px, 3svh, 32px); }
.auth-login .auth-form-topbar { max-width: 480px; padding-bottom: 20px; }
.auth-login .auth-form-panel { max-width: 480px; padding: 24px; margin-block: auto; }
.auth-login .auth-form-panel::before { inset: 0; }
.auth-login .auth-form-header { margin-bottom: 20px; }
.auth-login .auth-form { gap: 16px; }
.auth-login .auth-input-wrap input { min-height: 50px; padding-block: 12px; }
.auth-login .auth-submit { min-height: 50px; margin-top: 0; padding-block: 12px; }
.auth-login .auth-login-links { justify-content: space-between; gap: 4px 12px; margin-top: 16px; padding-top: 12px; }
.auth-login .auth-form-footer { padding-top: 20px; }
.auth-login .auth-messages { margin-bottom: 16px; }
@media (max-width: 960px) {
    .auth-login .auth-layout { grid-template-rows: auto 1fr; }
    .auth-login .auth-brand { padding: 12px 20px; }
    .auth-login .auth-logo { width: 58px; }
    .auth-login .auth-brand-link { gap: 14px; }
    .auth-login .auth-brand-name { font-size: 19px; }
    .auth-login .auth-form-side { padding: 12px 16px; }
    .auth-login .auth-form-topbar { padding-bottom: 12px; }
    .auth-login .auth-form-panel { padding: 20px; }
    .auth-login .auth-form-footer { padding-top: 12px; }
}
@media (max-height: 700px) {
    .auth-login .auth-form-side { padding-block: 10px; }
    .auth-login .auth-form-topbar { padding-bottom: 10px; }
    .auth-login .auth-form-panel { padding: 16px; }
    .auth-login .auth-form-header { margin-bottom: 16px; }
    .auth-login .auth-form-header h1 { font-size: 27px; }
    .auth-login .auth-description { display: none; }
    .auth-login .auth-form { gap: 12px; }
    .auth-login .auth-field { gap: 6px; }
    .auth-login .auth-input-wrap input { min-height: 46px; padding-block: 10px; }
    .auth-login .auth-submit { min-height: 46px; padding-block: 10px; }
    .auth-login .auth-login-links { margin-top: 12px; padding-top: 8px; }
    .auth-login .auth-messages { margin-bottom: 12px; }
    .auth-login .auth-message { padding: 10px; font-size: 13px; }
    .auth-login .auth-form-footer { display: none; }
    .auth-login .auth-brand-content { padding-block: 24px; }
}
@media (max-width: 960px) and (max-height: 700px) {
    .auth-login .auth-brand { padding-block: 8px; }
    .auth-login .auth-logo { width: 52px; }
}
@media (max-width: 359px) {
    .auth-login .auth-login-links { font-size: 12px; column-gap: 6px; }
}
@media (min-width: 560px) and (max-height: 520px) {
    .auth-login .auth-layout { grid-template-columns: 35% minmax(0, 1fr); grid-template-rows: 1fr; }
    .auth-login .auth-brand { justify-content: center; align-items: center; padding: 64px 12px 24px; }
    .auth-login .auth-brand-link { flex-direction: column; align-self: center; gap: 12px; text-align: center; }
    .auth-login .auth-logo { width: 76px; }
    .auth-login .auth-brand-name { font-size: 18px; }
    .auth-login .auth-brand-content,.auth-login .auth-brand-footer { display: none; }
    .auth-login .auth-form-side { padding: 8px 12px; }
    .auth-login .auth-form-topbar { position: absolute; top: 12px; left: 12px; width: calc(35% - 24px); max-width: none; padding: 0; gap: 6px; }
    .auth-login .auth-return { font-size: 12px; gap: 4px; }
    .auth-login .auth-form-panel { max-width: 540px; padding: 8px 12px; }
    .auth-login .auth-form-header { margin-bottom: 10px; }
    .auth-login .auth-form-header h1 { font-size: 24px; }
    .auth-login .auth-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .auth-login .auth-submit { grid-column: 1 / -1; }
    .auth-login .auth-login-links { margin-top: 8px; padding-top: 6px; }
    .auth-login .auth-messages { margin-bottom: 8px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --auth-panel: var(--auth-solid); --auth-brand-surface: var(--auth-solid); --auth-input: var(--auth-solid); --auth-reflection: none; --auth-glass-border: var(--auth-border); }
}
@media (prefers-reduced-transparency: reduce) {
    :root { --auth-panel: var(--auth-solid); --auth-brand-surface: var(--auth-solid); --auth-input: var(--auth-solid); --auth-reflection: none; --auth-glass-border: var(--auth-border); --auth-glass-filter: none; --auth-ambient: none; }
    .auth-brand::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .auth-submit:hover, .auth-submit:active { transform: none; }
}

/* Compact portrait login. Natural height remains available when the keyboard opens. */
@media (max-width: 700px) and (orientation: portrait) {
    .auth-login .auth-brand { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; }
    .auth-login .auth-logo { width: 50px; }
    .auth-login .auth-brand-name { font-size: 17px; }
    .auth-login .auth-brand-link { gap: 12px; }
    .auth-login .auth-form-side { padding: 10px 16px max(12px, env(safe-area-inset-bottom)); }
    .auth-login .auth-form-topbar { padding-bottom: 16px; }
    .auth-login .auth-return { min-height: 44px; font-size: 12px; }
    .auth-login .auth-form-panel { padding: 20px; margin-top: clamp(4px, 5svh, 42px); margin-bottom: auto; }
    .auth-login .auth-form-header { margin-bottom: 18px; }
    .auth-login .auth-form-header h1 { font-size: 26px; }
    .auth-login .auth-description { margin-top: 10px; font-size: 13px; }
    .auth-login .auth-form { gap: 14px; }
    .auth-login .auth-field { gap: 6px; }
    .auth-login .auth-input-wrap input { min-height: 48px; padding-block: 11px; font-size: 16px; }
    .auth-login .auth-password-toggle { width: 44px; height: 44px; }
    .auth-login .auth-submit { min-height: 48px; padding-block: 11px; }
    .auth-login .auth-login-links { margin-top: 14px; padding-top: 10px; gap: 0 10px; font-size: 12px; }
    .auth-login .auth-login-links a { min-height: 44px; }
    .auth-login .auth-form-footer { padding-top: 18px; font-size: 11px; }
}
@media (max-width: 700px) and (max-height: 700px) and (orientation: portrait) {
    .auth-login .auth-form-panel { margin-top: 0; padding: 16px; }
    .auth-login .auth-form-topbar { padding-bottom: 10px; }
}
