:root {
  --account-ink: #07121d;
  --account-muted: #637386;
  --account-line: #e2e8ef;
  --account-soft: #eef5f8;
  --account-red: #f31248;
  --account-red-strong: #ff2b62;
  --account-paper: #fffdfa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(8, 28, 46, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fffdfa 0%, #eef5f8 48%, #ffffff 100%);
  background-size: 44px 100%, auto;
  color: var(--account-ink);
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.account-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.account-nav-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 18, 29, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--account-ink);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.account-nav-button:hover,
.account-nav-button:focus {
  border-color: var(--account-red);
  background: var(--account-red);
  color: #fff;
}

.account-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.account-hero {
  padding: clamp(38px, 5vw, 72px) 0 34px;
}

.account-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.58fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.account-hero-copy,
.account-panel,
.account-auth-card,
.account-profile-card,
.account-card,
.account-summary {
  border: 1px solid rgba(7, 18, 29, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 18, 29, 0.08);
}

.account-hero-copy {
  min-height: 360px;
  padding: clamp(26px, 4vw, 50px);
  background:
    radial-gradient(circle at 82% 18%, rgba(10, 148, 138, 0.2), transparent 34%),
    linear-gradient(120deg, rgba(7, 18, 29, 0.92), rgba(7, 42, 62, 0.58)),
    url("/assets/crays-villas/andratx.jpg") center / cover no-repeat;
  color: #fff;
}

.account-kicker {
  margin: 0 0 14px;
  color: var(--account-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-hero-copy h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: 0;
}

.account-hero-copy p {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.account-panel {
  padding: clamp(22px, 3vw, 34px);
}

.account-panel h2,
.account-section h2,
.account-summary h2 {
  margin: 0;
  color: var(--account-ink);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.account-panel > p,
.account-section > p,
.account-summary > p {
  margin: 10px 0 0;
  color: var(--account-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.account-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.account-field {
  display: grid;
  gap: 8px;
  color: var(--account-ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-field input,
.account-field textarea,
.account-field select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--account-line);
  border-radius: 8px;
  background: #f9fbfc;
  color: var(--account-ink);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 800;
  text-transform: none;
  outline: 0;
}

.account-field textarea {
  min-height: 110px;
  padding-top: 14px;
  resize: vertical;
}

.account-field select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--account-ink) 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    #f9fbfc;
}

.account-button,
.account-button-secondary,
.account-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.account-button {
  border: 1px solid var(--account-red);
  background: linear-gradient(180deg, var(--account-red-strong) 0%, var(--account-red) 100%);
  color: #fff;
  box-shadow: 0 18px 38px rgba(243, 18, 72, 0.22);
}

.account-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.account-button-secondary,
.account-link-button {
  border: 1px solid var(--account-line);
  background: #fff;
  color: var(--account-ink);
}

.account-button:hover,
.account-button-secondary:hover,
.account-link-button:hover {
  transform: translateY(-1px);
}

.account-status {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  display: none;
  width: min(360px, calc(100% - 40px));
  border: 1px solid rgba(243, 18, 72, 0.24);
  border-radius: 8px;
  background: #fff6f8;
  color: var(--account-ink);
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(7, 18, 29, 0.18);
}

.account-status[data-tone="error"] {
  border-color: rgba(243, 18, 72, 0.28);
  background: #fff0f4;
}

.account-status.is-visible {
  display: block;
}

.account-main {
  padding: 0 0 70px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.account-section {
  display: grid;
  gap: 14px;
}

.account-list {
  display: grid;
  gap: 14px;
}

.account-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  overflow: hidden;
}

.account-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  background: #dde6ec;
}

.account-card-body {
  padding: 22px;
}

.account-card-body small {
  color: var(--account-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-card-body h3 {
  margin: 8px 0 8px;
  color: var(--account-ink);
  font-size: 24px;
  line-height: 1.1;
}

.account-card-body p {
  margin: 0;
  color: var(--account-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.account-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.account-card-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--account-line);
  border-radius: 999px;
  background: #f6fafc;
  color: var(--account-ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.account-card-actions {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 190px;
  border-left: 1px solid var(--account-line);
  padding: 18px;
}

.account-summary {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.account-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--account-line);
  padding-bottom: 12px;
  color: var(--account-muted);
  font-size: 13px;
  font-weight: 800;
}

.account-summary-row strong {
  color: var(--account-ink);
}

.account-empty {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(7, 18, 29, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.account-empty strong {
  color: var(--account-ink);
  font-size: 20px;
}

.account-empty p {
  margin: 0;
  color: var(--account-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.account-two-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .account-hero-grid,
  .account-layout,
  .account-card {
    grid-template-columns: 1fr;
  }

  .account-summary {
    position: static;
  }

  .account-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid var(--account-line);
  }
}

@media (max-width: 720px) {
  .account-shell {
    width: min(100% - 24px, 1180px);
  }

  .booking-header-utility {
    overflow: visible;
  }

  .booking-utility-button:not(.booking-utility-phone) {
    display: none;
  }

  .booking-utility-phone {
    width: 100%;
    justify-content: space-between;
  }

  .account-actions {
    width: 100%;
    justify-content: center;
    margin: 10px 0 0;
  }

  .account-hero {
    padding-top: 24px;
  }

  .account-hero-grid {
    grid-template-columns: 1fr;
  }

  .account-auth-card,
  .account-profile-card {
    order: -1;
  }

  .account-hero-copy {
    min-height: auto;
    padding: 28px;
  }

  .account-hero-copy h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .account-flow-grid {
    display: none;
  }

  .account-card-actions,
  .account-two-actions {
    grid-template-columns: 1fr;
  }
}

.account-hero-unified .account-hero-copy {
  min-height: 560px;
  background:
    radial-gradient(circle at 80% 18%, rgba(10, 148, 138, 0.22), transparent 36%),
    linear-gradient(120deg, rgba(7, 18, 29, 0.92), rgba(7, 42, 62, 0.6)),
    url("/assets/crays-villas/stock/mallorca-discovery-lifestyle.jpg") center / cover no-repeat;
}

.account-auth-card,
.account-profile-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.account-auth-head {
  display: grid;
  gap: 10px;
}

.account-auth-head h2,
.account-profile-card h2 {
  margin: 0;
  color: var(--account-ink);
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.account-auth-head p,
.account-profile-card p {
  margin: 0;
  color: var(--account-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.58;
}

.account-social-grid {
  display: grid;
  gap: 10px;
}

.account-social-button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 68px;
  border: 1px solid rgba(7, 18, 29, 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 14px;
  color: var(--account-ink);
  box-shadow: 0 12px 34px rgba(7, 18, 29, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-social-button:hover,
.account-social-button:focus {
  border-color: rgba(243, 18, 72, 0.34);
  box-shadow: 0 18px 44px rgba(7, 18, 29, 0.12);
  transform: translateY(-1px);
}

.account-social-button strong,
.account-social-button small {
  grid-column: 2;
}

.account-social-button strong {
  font-size: 14px;
  font-weight: 900;
}

.account-social-button small {
  margin-top: 3px;
  color: var(--account-muted);
  font-size: 11px;
  font-weight: 800;
}

.account-provider-icon {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.account-provider-icon--google {
  background: linear-gradient(135deg, #1769a6 0%, #0a948a 100%);
}

.account-provider-icon--linkedin {
  background: #0a66c2;
  font-size: 15px;
}

.account-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--account-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-divider::before,
.account-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--account-line);
}

.account-signup-form {
  margin-top: 0;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--account-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.account-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--account-red);
}

.account-consent a {
  color: var(--account-red);
  font-weight: 900;
}

.account-profile-card {
  min-height: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.account-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--account-red) 0%, #1769a6 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.account-profile-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-profile-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--account-line);
  padding-bottom: 10px;
}

.account-profile-list dt {
  color: var(--account-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-profile-list dd {
  margin: 0;
  color: var(--account-ink);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.account-sync-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  width: fit-content;
  border: 1px solid rgba(10, 148, 138, 0.18);
  border-radius: 999px;
  background: rgba(10, 148, 138, 0.08);
  color: #075d59;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-sync-badge--pending {
  border-color: rgba(243, 18, 72, 0.18);
  background: rgba(243, 18, 72, 0.08);
  color: var(--account-red);
}

.account-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.account-flow-grid article {
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  backdrop-filter: blur(12px);
}

.account-flow-grid span {
  display: block;
  color: var(--account-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.account-flow-grid strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.account-flow-grid p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.account-layout-unified {
  align-items: start;
}

.account-stack {
  gap: 22px;
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(7, 18, 29, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 20px 22px;
  box-shadow: 0 18px 50px rgba(7, 18, 29, 0.07);
}

.account-section-head .account-kicker {
  margin-bottom: 7px;
}

@media (max-width: 980px) {
  .account-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .account-flow-grid {
    grid-template-columns: 1fr;
  }

  .account-hero-unified .account-hero-copy {
    min-height: auto;
  }

  .account-form-grid,
  .account-social-button {
    grid-template-columns: 1fr;
  }

  .account-provider-icon {
    grid-row: auto;
  }

  .account-social-button strong,
  .account-social-button small {
    grid-column: auto;
  }
}
