.account-page {
  min-height: 100vh;
  background: var(--paper);
}

.account-header {
  color: var(--forest);
  background: rgba(248, 244, 234, 0.96);
  border-bottom: 1px solid var(--line);
}

.account-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.account-back,
.account-logout {
  color: var(--forest);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-main {
  min-height: calc(100vh - 82px);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
  padding-block: clamp(60px, 8vw, 110px);
}

.auth-shell[hidden],
.dashboard-shell[hidden] {
  display: none;
}

.auth-intro {
  position: sticky;
  top: 60px;
  padding: 50px 0;
}

.auth-intro h1,
.dashboard-top h1 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(54px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.auth-intro h1 em {
  color: var(--clay);
  font-weight: 400;
}

.auth-intro > p:not(.section-kicker),
.dashboard-top > div > p:not(.section-kicker) {
  max-width: 460px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.auth-intro ul {
  display: grid;
  gap: 14px;
  margin: 35px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font-size: 12px;
  list-style: none;
}

.auth-intro li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--clay);
}

.auth-panel {
  min-width: 0;
  background: var(--sand);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  min-height: 58px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-tabs button:last-child { border-right: 0; }
.auth-tabs button[aria-selected="true"] { color: #fff; background: var(--forest); }

.auth-form {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 56px);
}

.auth-form[hidden] { display: none; }

.auth-heading h2,
.dashboard-grid h2,
.draft-booking h2 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.1;
}

.auth-heading p {
  margin: 9px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.account-field label,
.register-form legend {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-field input {
  width: 100%;
  height: 50px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
  border-radius: 0;
}

.account-field input[aria-invalid="true"] { border-color: #a44836; }
.account-field small { min-height: 14px; display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.account-field small.is-error { color: #a44836; }

.register-form fieldset {
  margin: 10px 0;
  padding: 25px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.register-form legend { padding: 0 12px 0 0; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.field-span-2 { grid-column: 1 / -1; }

.privacy-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.privacy-check input { margin-top: 4px; accent-color: var(--forest); }
.privacy-check a { color: var(--forest); text-decoration: underline; }

.account-feedback {
  min-height: 20px;
  margin: 0;
  color: #a44836;
  font-size: 11px;
}

.auth-form .button { width: 100%; }

.dashboard-shell { padding-block: clamp(55px, 7vw, 100px); }

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}

.dashboard-top h1 { font-size: clamp(52px, 6vw, 76px); }

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.button-outline {
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--forest);
}

.draft-booking {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: center;
  margin: 45px 0;
  padding: 32px;
  color: var(--forest);
  background: var(--sand);
  border-left: 4px solid var(--clay);
}

.draft-booking[hidden] { display: none; }
.draft-booking .section-kicker { margin-bottom: 10px; }
.draft-booking h2 { font-size: 30px; }
.draft-booking > div > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.draft-booking .account-feedback { grid-column: 1 / -1; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 28px;
  margin-top: 50px;
}

.bookings-panel,
.profile-panel {
  padding: clamp(25px, 4vw, 42px);
  background: var(--cream);
  border: 1px solid var(--line);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.panel-heading .section-kicker,
.profile-panel .section-kicker { margin-bottom: 8px; }
.panel-heading h2,
.profile-panel h2 { font-size: 34px; }

.panel-heading button {
  width: 40px;
  height: 40px;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.booking-list { display: grid; }

.account-booking {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.booking-date {
  width: 58px;
  height: 64px;
  display: grid;
  place-content: center;
  color: #fff;
  background: var(--forest);
  text-align: center;
}

.booking-date strong { font-family: var(--serif); font-size: 25px; line-height: 1; }
.booking-date small { font-size: 8px; text-transform: uppercase; }
.booking-info h3 { margin: 0; color: var(--forest); font-family: var(--serif); font-size: 24px; font-weight: 400; }
.booking-info p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

.booking-side { display: grid; justify-items: end; gap: 8px; }
.status-pill { padding: 6px 9px; border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.status-pending { color: #765113; background: #f1dcae; }
.status-confirmed { color: #1e5a3f; background: #cfe5d6; }
.status-rejected, .status-cancelled { color: #814439; background: #ecd4ce; }
.cancel-booking { color: #914434; background: transparent; border: 0; font-size: 9px; text-decoration: underline; cursor: pointer; }

.empty-state { padding: 40px 0; color: var(--muted); font-size: 12px; text-align: center; }

.profile-panel dl { display: grid; gap: 17px; margin: 30px 0 0; }
.profile-panel dt { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.profile-panel dd { margin: 3px 0 0; color: var(--forest); font-size: 12px; overflow-wrap: anywhere; }
.profile-note { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

@media (max-width: 900px) {
  .auth-shell,
  .dashboard-grid { grid-template-columns: 1fr; }
  .auth-intro { position: static; padding: 15px 0; }
  .dashboard-top { align-items: flex-start; flex-direction: column; }
  .dashboard-actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .account-header-inner { min-height: 72px; }
  .account-back { font-size: 8px; }
  .auth-shell { padding-block: 38px; }
  .auth-intro h1 { font-size: 50px; }
  .auth-intro ul { display: none; }
  .auth-form { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: 1; }
  .draft-booking { grid-template-columns: 1fr; padding: 24px; }
  .account-booking { grid-template-columns: auto 1fr; }
  .booking-side { grid-column: 1 / -1; justify-items: start; padding-left: 78px; }
  .dashboard-actions .button { width: 100%; }
}

/* Área do hóspede — identidade geométrica */
.account-page {
  background:
    radial-gradient(circle at 85% 15%, rgba(155, 216, 215, 0.32), transparent 25%),
    linear-gradient(145deg, #f8fdfd 0%, #e8f7f6 100%);
}

.account-header {
  color: var(--forest-deep);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 40px rgba(4, 62, 67, 0.08);
  backdrop-filter: blur(18px) saturate(145%);
}

.account-back,
.account-logout {
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 10px;
  transition: color 250ms ease, background 250ms ease;
}

.account-back:hover,
.account-logout:hover {
  color: var(--forest-deep);
  background: var(--sand);
}

.auth-shell {
  align-items: stretch;
}

.auth-intro {
  position: sticky;
  top: 105px;
  min-height: 600px;
  align-self: start;
  overflow: hidden;
  padding: clamp(38px, 5vw, 58px);
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(3, 54, 58, 0.22), rgba(3, 54, 58, 0.92)),
    url("assets/pancas-hero.jpg") center / cover;
  box-shadow: var(--shadow);
}

.auth-intro::after {
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 170px;
  height: 170px;
  border: 35px solid rgba(245, 197, 66, 0.8);
  border-radius: 52px;
  content: "";
  transform: rotate(24deg);
}

.auth-intro .section-kicker,
.auth-intro h1,
.auth-intro > p:not(.section-kicker),
.auth-intro ul {
  position: relative;
  z-index: 1;
  color: #fff;
}

.auth-intro h1,
.dashboard-top h1 {
  font-family: var(--serif);
  font-weight: 720;
  letter-spacing: -0.055em;
}

.auth-intro h1 em {
  color: var(--gold);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

.auth-intro ul {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.auth-intro li::before {
  color: var(--gold);
}

.auth-panel {
  overflow: hidden;
  border: 1px solid rgba(7, 94, 99, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-tabs {
  padding: 8px;
  gap: 8px;
  border: 0;
  background: #edf8f7;
}

.auth-tabs button,
.auth-tabs button:last-child {
  min-height: 52px;
  border: 0;
  border-radius: 13px;
  font-family: var(--serif);
  font-weight: 750;
  transition: color 250ms ease, background 250ms ease, transform 250ms ease;
}

.auth-tabs button:hover {
  transform: translateY(-2px);
}

.auth-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 12px 24px rgba(7, 94, 99, 0.2);
}

.auth-heading h2,
.dashboard-grid h2,
.draft-booking h2 {
  color: var(--forest-deep);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.account-field input {
  border: 1px solid rgba(7, 94, 99, 0.16);
  border-radius: 13px;
  background: #f8fcfc;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.account-field input:focus {
  border-color: var(--forest);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7, 94, 99, 0.1);
  outline: 0;
}

.register-form fieldset {
  border-color: rgba(7, 94, 99, 0.14);
  border-radius: 17px;
}

.dashboard-top {
  padding: 42px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(4, 62, 67, 0.09);
  backdrop-filter: blur(12px);
}

.draft-booking,
.bookings-panel,
.profile-panel {
  border: 1px solid rgba(7, 94, 99, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 42px rgba(4, 62, 67, 0.08);
}

.draft-booking {
  background: linear-gradient(135deg, #fff 0%, #e7f7f6 100%);
}

.panel-heading button,
.booking-date {
  border-radius: 13px;
}

.panel-heading button {
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.panel-heading button:hover {
  color: #fff;
  background: var(--forest);
  transform: rotate(90deg);
}

.booking-date {
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(7, 94, 99, 0.2);
}

.booking-info h3 {
  color: var(--forest-deep);
  font-family: var(--serif);
  font-weight: 680;
}

.status-pill {
  border-radius: 10px;
}

.status-pending {
  color: #674e00;
  background: #ffedaf;
}

.status-confirmed {
  color: #075e63;
  background: #c9efec;
}

@media (max-width: 900px) {
  .auth-intro {
    position: relative;
    top: auto;
    min-height: 420px;
  }
}

/* Reserva detalhada e avaliação da hospedagem */
.booking-list {
  gap: 24px;
  padding-top: 26px;
}

.account-booking.booking-detailed {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.4fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 94, 99, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(4, 62, 67, 0.08);
}

.booking-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 4px;
  min-height: 100%;
  padding: 4px;
  background: #dceeed;
}

.booking-gallery img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 7px;
  transition: transform 280ms ease, filter 280ms ease;
}

.booking-gallery img:first-child {
  grid-column: 1 / -1;
  height: 230px;
}

.booking-gallery img:hover { transform: scale(1.025); filter: saturate(1.1); }

.booking-gallery-placeholder {
  grid-column: 1 / -1;
  min-height: 310px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--forest);
  text-align: center;
  background: linear-gradient(145deg, #d8efed, #f4fbfa);
}

.booking-gallery-placeholder span { font-size: 48px; }
.booking-gallery-placeholder small { max-width: 150px; font-size: 9px; line-height: 1.6; }

.booking-content { min-width: 0; padding: clamp(22px, 3vw, 34px); }
.booking-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.booking-title-row h3 { margin: 3px 0 0; color: var(--forest-deep); font-family: var(--serif); font-size: 29px; line-height: 1.05; }
.booking-room-number { margin: 0; color: #bc8b11; font-size: 9px; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.booking-room-description { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.booking-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 18px;
  border-radius: 15px;
  background: #edf8f7;
}

.booking-facts dt { color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.booking-facts dd { margin: 4px 0 0; color: var(--forest-deep); font-size: 10px; font-weight: 700; line-height: 1.45; }

.booking-amenities { margin-top: 22px; }
.booking-amenities > strong { color: var(--forest-deep); font-size: 10px; }
.booking-amenities ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 0; padding: 0; list-style: none; }
.booking-amenities li { padding: 7px 10px; border: 1px solid rgba(7, 94, 99, 0.13); border-radius: 999px; color: var(--forest); background: #fff; font-size: 8px; font-weight: 750; }
.booking-admin-note { margin: 20px 0 0; padding: 13px 15px; border-left: 3px solid #e0b62f; color: #604d10; background: #fff9dc; font-size: 10px; line-height: 1.6; }
.booking-actions { margin-top: 22px; }

.booking-review {
  padding: 18px;
  border: 1px solid rgba(7, 94, 99, 0.12);
  border-radius: 16px;
  background: #f7fbfb;
}

.booking-review.is-available { border-color: rgba(224, 182, 47, 0.36); background: linear-gradient(135deg, #fffdf4, #f7fbfb); }
.booking-review > div:first-child { display: grid; gap: 4px; }
.booking-review strong { color: var(--forest-deep); font-size: 11px; }
.booking-review small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.review-form { display: grid; gap: 12px; margin-top: 14px; }
.rating-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; border: 0; }
.rating-stars legend { width: 100%; margin-bottom: 6px; color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.rating-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rating-stars label { color: #c8d5d4; font-size: 29px; line-height: 1; cursor: pointer; transition: color 160ms ease, transform 160ms ease; }
.rating-stars input:checked + label,
.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label { color: #e0b62f; }
.rating-stars input:focus-visible + label { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.rating-stars label:hover { transform: translateY(-2px) scale(1.07); }
.review-form textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid rgba(7, 94, 99, 0.16); border-radius: 11px; color: var(--forest-deep); background: #fff; font: inherit; font-size: 10px; }
.review-form > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-form button { padding: 10px 14px; border: 0; border-radius: 10px; color: #fff; background: var(--forest); font-size: 8px; font-weight: 800; cursor: pointer; }
.review-form button:disabled { opacity: 0.55; cursor: wait; }
.review-feedback { margin: 0; color: #8b3e31; font-size: 8px; }

@media (max-width: 760px) {
  .account-booking.booking-detailed { grid-template-columns: 1fr; }
  .booking-gallery img:first-child { height: 230px; }
  .booking-gallery-placeholder { min-height: 230px; }
}

@media (max-width: 480px) {
  .booking-content { padding: 20px; }
  .booking-facts { grid-template-columns: 1fr; }
  .booking-title-row { align-items: flex-start; flex-direction: column-reverse; }
  .review-form > div { align-items: stretch; flex-direction: column; }
}

@media (max-width: 600px) {
  .auth-intro {
    min-height: 390px;
    padding: 34px 25px;
    border-radius: 23px;
  }

  .auth-panel,
  .dashboard-top,
  .draft-booking,
  .bookings-panel,
  .profile-panel {
    border-radius: 20px;
  }
}
