/* Naim login: a quiet working space beside the hospitality it serves. */
* { box-sizing: border-box; }
body { margin: 0; color: var(--naim-ink); background: var(--naim-ivory); font-family: var(--naim-font-body); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 3px solid var(--naim-gold-ink); outline-offset: 5px; }
::selection { color: var(--naim-white); background: var(--naim-plum); }
[hidden] { display: none !important; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(460px, 1fr); min-height: 100svh; }
.auth-scene { position: sticky; isolation: isolate; top: 20px; align-self: start; height: calc(100svh - 40px); min-height: 620px; margin: 20px 0 20px 20px; border-radius: 18px 18px 80px 18px; color: var(--naim-ivory); background: #30202F; overflow: hidden; }
.auth-scene-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }
.auth-scene::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(35 22 34 / 42%) 0%, rgb(35 22 34 / 18%) 35%, rgb(35 22 34 / 86%) 100%); }
.auth-scene::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgb(250 247 240 / 20%); border-radius: 8px 8px 64px 8px; pointer-events: none; }
.auth-scene-content { display: flex; flex-direction: column; min-height: 100%; padding: 40px 44px; }
.auth-scene-logo { display: inline-block; align-self: flex-start; }
.auth-scene-logo img { width: 165px; }
.auth-scene-logo:focus-visible { outline-color: var(--naim-ivory); }
.auth-scene-story { margin-top: auto; padding-block: 75px 50px; }
.auth-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 700; line-height: 1.7; letter-spacing: .16em; color: var(--naim-gold-ink); }
.auth-eyebrow::before { content: ''; flex: 0 0 22px; height: 1px; background: var(--naim-gold); }
.auth-scene-story .auth-eyebrow { color: var(--naim-ivory); font-size: 8px; }
.auth-scene-story h2 { margin: 22px 0; font-family: var(--naim-font-display); font-size: clamp(48px, 5vw, 76px); font-weight: 500; letter-spacing: -.055em; line-height: 1.05; }
.auth-scene-story h2 em { font-weight: 500; color: #E6D0AA; }
.auth-scene-story > p:last-child { max-width: 325px; color: #F0E9EE; font-size: 13px; line-height: 1.9; }
.auth-scene-note { display: flex; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid rgb(250 247 240 / 25%); font-size: 8px; letter-spacing: .12em; }
.auth-scene-note > span { color: #E6D0AA; font-size: 20px; line-height: 1; }
.auth-panel { display: flex; flex-direction: column; min-width: 0; padding: 28px clamp(32px, 4.5vw, 80px) 25px; }
.auth-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.auth-back { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; color: var(--naim-muted); font-size: 12px; }
.auth-back > span { font-size: 18px; }
.auth-back:hover, .auth-help:hover, .auth-contact a:hover { color: var(--naim-plum); text-decoration: underline; text-underline-offset: 5px; }
.auth-languages { display: flex; gap: 4px; }
.auth-languages a { display: grid; place-items: center; min-width: 34px; min-height: 40px; color: var(--naim-muted); font-size: 10px; }
.auth-languages a[aria-current='page'] { color: var(--naim-plum); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.auth-center { display: grid; place-items: center; flex: 1; padding-block: 55px; }
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-mobile-logo { display: none; }
.auth-intro { margin-bottom: 33px; }
.auth-intro h1 { margin: 15px 0 13px; color: var(--naim-plum); font-family: var(--naim-font-display); font-size: clamp(38px, 3.5vw, 48px); font-weight: 500; line-height: 1.13; letter-spacing: -.045em; text-wrap: balance; }
.auth-description { max-width: 370px; color: var(--naim-muted); font-size: 13px; line-height: 1.85; }
.auth-field + .auth-field { margin-top: 24px; }
.auth-field > label { display: block; margin-bottom: 10px; color: var(--naim-ink); font-size: 13px; font-weight: 600; }
.auth-input-wrap { position: relative; }
.auth-input-wrap input { width: 100%; min-height: 56px; padding: 15px 17px; border: 1px solid #9A8795; border-radius: 8px; color: var(--naim-ink); background: var(--naim-white); font-size: 16px; line-height: 1.5; transition: border-color .2s ease; }
.auth-input-wrap input::placeholder { color: var(--naim-muted); opacity: 1; }
.auth-input-wrap input:hover:not(:focus):not([aria-invalid='true']) { border-color: var(--naim-muted); }
.auth-input-wrap input:focus { outline: 2px solid var(--naim-plum); outline-offset: 2px; border-color: var(--naim-plum); }
.auth-input-wrap input[aria-invalid='true'] { border-color: #A44545; }
.auth-input-wrap input[aria-invalid='true']:focus { outline-color: #A44545; }
#password { padding-right: 54px; }
.auth-password-toggle { position: absolute; top: 6px; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 5px; color: var(--naim-muted); background: transparent; }
.auth-password-toggle:hover { color: var(--naim-plum); background: var(--naim-lavender); }
.auth-eye-slash { display: none; }
.auth-password-toggle[aria-pressed='true'] .auth-eye-slash { display: block; }
.auth-field-error, .auth-caps-lock { margin-top: 8px; color: #943B3B; font-size: 12px; line-height: 1.6; }
.auth-caps-lock { color: var(--naim-gold-ink); }
.auth-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.auth-remember { display: flex; align-items: center; gap: 9px; min-height: 36px; color: var(--naim-muted); font-size: 11px; cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--naim-plum); cursor: pointer; }
.auth-help { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--naim-plum); font-size: 11px; font-weight: 600; }
.auth-submit { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 55px; margin-top: 23px; padding: 15px 21px; border: 1px solid var(--naim-plum); border-radius: 7px; color: var(--naim-white); background: var(--naim-plum); font-size: 13px; font-weight: 600; transition: background .2s ease, translate .2s ease; }
.auth-submit:hover:not(:disabled) { background: var(--naim-plum-hover); translate: 0 -1px; }
.auth-submit:disabled { cursor: progress; opacity: .85; }
.auth-submit-arrow { font-size: 20px; line-height: 1; }
.auth-spinner { width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / 35%); border-top-color: #FFFFFF; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.auth-contact { margin-top: 29px; padding-top: 24px; border-top: 1px solid var(--naim-border); color: var(--naim-muted); font-size: 11px; text-align: center; }
.auth-contact a { display: inline-block; margin-left: 4px; color: var(--naim-plum); font-weight: 600; }
.auth-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 15px; color: var(--naim-muted); font-size: 9px; }
.auth-alert { display: flex; gap: 12px; margin-bottom: 25px; padding: 16px; border: 1px solid #E8C6C6; border-radius: 7px; background: #F9EEEB; color: #7F3434; }
.auth-alert-mark { flex: 0 0 20px; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 700; }
.auth-alert strong { font-size: 12px; font-weight: 700; }
.auth-alert p, .auth-alert li { font-size: 12px; }
.auth-alert p { margin-top: 4px; }
.auth-alert ul { display: flex; gap: 15px; flex-wrap: wrap; margin: 8px 0 0; padding: 0; list-style: none; }
.auth-alert a { text-decoration: underline; text-underline-offset: 3px; }
.auth-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes auth-enter { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
    .auth-intro { animation: auth-enter .7s cubic-bezier(.2,.7,.2,1) both; }
    #login-form, .auth-alert { animation: auth-enter .7s cubic-bezier(.2,.7,.2,1) .1s both; }
    .auth-scene-story { animation: auth-enter .9s cubic-bezier(.2,.7,.2,1) .15s both; }
}
@media (max-width: 1150px) {
    .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(440px, 1.05fr); }
    .auth-scene-content { padding: 32px; }
    .auth-scene-story h2 { font-size: 54px; }
    .auth-scene-story .auth-eyebrow { font-size: 7px; }
    .auth-panel { padding-inline: 40px; }
}
@media (max-width: 900px) {
    .auth-shell { display: block; }
    .auth-scene { display: none; }
    .auth-panel { min-height: 100svh; padding: 20px 32px 24px; }
    .auth-center { padding-block: 40px 55px; }
    .auth-mobile-logo { display: block; width: 155px; margin-bottom: 40px; }
    .auth-intro h1 { font-size: 43px; }
    .auth-footer { width: 100%; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 480px) {
    .auth-panel { padding: 15px 24px 22px; }
    .auth-center { padding-block: 35px 45px; }
    .auth-mobile-logo { width: 145px; margin-bottom: 34px; }
    .auth-intro { margin-bottom: 28px; }
    .auth-intro h1 { font-size: 39px; }
    .auth-description { font-size: 13px; }
    .auth-input-wrap input { font-size: 16px; }
    .auth-footer { font-size: 9px; }
}
@media (max-width: 360px) {
    .auth-panel { padding-inline: 20px; }
    .auth-intro h1 { font-size: 36px; }
    .auth-options { gap: 2px 12px; }
}
@media (min-width: 901px) and (max-height: 780px) {
    .auth-scene { min-height: 580px; }
    .auth-center { padding-block: 32px; }
    .auth-scene-content { padding: 32px 36px; }
    .auth-scene-story { padding-block: 40px 35px; }
    .auth-scene-story h2 { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .auth-submit:hover { translate: none; }
}

.auth-input-wrap select { width: 100%; min-height: 56px; padding: 15px 17px; border: 1px solid #9A8795; border-radius: 8px; color: var(--naim-ink); background: var(--naim-white); font: inherit; }
.auth-input-wrap select:focus { outline: 2px solid var(--naim-plum); outline-offset: 2px; border-color: var(--naim-plum); }
@media (max-width: 640px) { .auth-input-wrap select { font-size: 16px; } }
