:root {
  --auth-brown: #75491f;
  --auth-brown-dark: #4b2b12;
  --auth-gold: #ce9f59;
  --auth-gold-light: #e6c89f;
  --auth-ink: #15110e;
  --auth-muted: #70685f;
  --auth-line: #dfd5ca;
  --auth-surface: #fff;
  --auth-background: #f4f0eb;
  --auth-danger: #a52a2a;
  --auth-success: #217a4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body.hotel-auth {
  color: var(--auth-ink);
  background: var(--auth-background);
  font-family: "Jost", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.hotel-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(520px, .96fr);
  min-height: 100vh;
}

.hotel-auth-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(35, 18, 6, .56), rgba(22, 12, 5, .82)),
    url("../images/banners/slider-1.png") center / cover no-repeat;
}

.hotel-auth-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, rgba(117, 73, 31, .08), rgba(19, 10, 3, .22));
}

.hotel-auth-brand,
.hotel-auth-intro {
  position: relative;
  z-index: 1;
}

.hotel-auth-brand {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 14px;
}

.hotel-auth-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.hotel-auth-brand strong,
.hotel-auth-card-brand span {
  display: block;
  font-size: 21px;
  line-height: 1.05;
}

.hotel-auth-brand span {
  display: block;
  margin-top: 6px;
  color: var(--auth-gold-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.hotel-auth-intro {
  align-self: flex-end;
  max-width: 690px;
  margin: auto 0 2vh;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.secure-badge svg {
  width: 16px;
  fill: var(--auth-gold-light);
}

.hotel-auth-kicker {
  margin: 30px 0 10px;
  color: var(--auth-gold-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hotel-auth-intro h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 5.3vw, 80px);
  line-height: .98;
  letter-spacing: -.025em;
}

.hotel-auth-intro > p:last-child {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.hotel-auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px clamp(28px, 6vw, 90px) 24px;
  background:
    radial-gradient(circle at 85% 12%, rgba(206, 159, 89, .14), transparent 25%),
    var(--auth-background);
}

.hotel-auth-card {
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 20px;
  background: var(--auth-surface);
  box-shadow: 0 24px 65px rgba(71, 45, 25, .13);
}

.hotel-auth-card-header {
  padding: 34px 38px 25px;
  border-bottom: 1px solid var(--auth-line);
}

.hotel-auth-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
  color: var(--auth-brown);
  text-decoration: none;
}

.hotel-auth-card-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.hotel-auth-card-header h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 33px;
  line-height: 1.15;
}

.hotel-auth-card-header p {
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-size: 17px;
}

.hotel-auth-card-body {
  padding: 28px 38px 34px;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding: 13px 15px;
  border-left: 4px solid currentColor;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.auth-alert svg {
  flex: 0 0 19px;
  width: 19px;
  margin-top: 1px;
  fill: currentColor;
}

.auth-alert-danger {
  color: var(--auth-danger);
  background: #fff0ef;
}

.auth-alert-success {
  color: var(--auth-success);
  background: #edf9f1;
}

.auth-alert-info,
.auth-alert-warning {
  color: var(--auth-brown);
  background: #fff7e9;
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label,
.auth-label-row a {
  font-size: 14px;
  font-weight: 700;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-label-row a {
  color: var(--auth-brown);
  text-decoration: none;
}

.auth-label-row a:hover,
.auth-label-row a:focus-visible {
  text-decoration: underline;
}

.auth-field input[type="text"],
.auth-field input[type="password"] {
  width: 100%;
  height: 54px;
  margin-top: 8px;
  padding: 0 15px;
  border: 1px solid #cabfb4;
  border-radius: 10px;
  outline: 0;
  color: var(--auth-ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-field input::placeholder {
  color: #968d84;
}

.auth-field input:hover {
  border-color: #ac9a89;
}

.auth-field input:focus {
  border-color: var(--auth-brown);
  box-shadow: 0 0 0 4px rgba(117, 73, 31, .12);
}

.auth-field.has-error input {
  border-color: var(--auth-danger);
  background: #fffafa;
}

.auth-field-error {
  display: none;
  margin: 7px 0 0;
  color: var(--auth-danger);
  font-size: 13px;
}

.auth-field.has-error .auth-field-error {
  display: block;
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 70px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 13px;
  padding: 7px 5px;
  border: 0;
  color: var(--auth-brown);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-40%);
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--auth-muted);
  font-size: 14px;
  cursor: pointer;
}

.auth-remember input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--auth-brown);
}

.auth-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(105deg, var(--auth-brown-dark), var(--auth-brown) 55%, #a66e36);
  box-shadow: 0 10px 24px rgba(117, 73, 31, .22);
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-submit:hover {
  box-shadow: 0 13px 28px rgba(117, 73, 31, .29);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.auth-submit:focus-visible,
.password-toggle:focus-visible,
.auth-back-link:focus-visible {
  outline: 3px solid rgba(206, 159, 89, .55);
  outline-offset: 3px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .82;
}

.auth-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
}

.auth-submit.is-loading .auth-submit-label {
  display: none;
}

.auth-submit.is-loading .auth-spinner {
  display: block;
}

.auth-form-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  text-align: center;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 600;
}

.auth-back-link svg {
  width: 17px;
  fill: var(--auth-brown);
}

.auth-back-link:hover {
  color: var(--auth-brown);
}

.hotel-auth-copyright {
  margin: 22px 0 0;
  color: #8a8178;
  font-size: 12px;
  text-align: center;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1050px) {
  .hotel-auth-shell {
    grid-template-columns: minmax(0, .8fr) minmax(500px, 1.2fr);
  }

  .hotel-auth-intro h1 {
    font-size: clamp(43px, 5vw, 62px);
  }
}

@media (max-width: 820px) {
  .hotel-auth-shell {
    display: flex;
    flex-direction: column;
  }

  .hotel-auth-panel {
    order: 1;
    min-height: auto;
    padding: 42px 22px 28px;
  }

  .hotel-auth-visual {
    order: 2;
    min-height: 420px;
    padding: 38px 28px;
  }

  .hotel-auth-brand {
    display: none;
  }

  .hotel-auth-intro {
    margin-top: auto;
  }
}

@media (max-width: 520px) {
  .hotel-auth-panel {
    padding: 18px 12px 22px;
  }

  .hotel-auth-card {
    border-radius: 14px;
  }

  .hotel-auth-card-header,
  .hotel-auth-card-body {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hotel-auth-card-header {
    padding-top: 25px;
  }

  .hotel-auth-card-header h2 {
    font-size: 29px;
  }

  .hotel-auth-card-header p {
    font-size: 15px;
  }

  .hotel-auth-card-brand {
    margin-bottom: 18px;
  }

  .hotel-auth-visual {
    min-height: 370px;
  }

  .hotel-auth-intro h1 {
    font-size: 42px;
  }

  .hotel-auth-intro > p:last-child {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
