#account-main {
  background: var(--paper);
  padding: clamp(1.25rem, 4.5vw, 4rem) 5% clamp(2rem, 6vw, 5.5rem);
}

.account-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, .92fr);
  max-width: 1160px;
  min-height: 552px;
  margin-inline: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 60px #0623300d;
}

.account-photo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: 220px;
  color: white;
  background: var(--navy);
}

.account-photo img,
.account-photo::after {
  position: absolute;
  inset: 0;
  height: 100%;
}

.account-photo img {
  z-index: -2;
  object-position: 50% 40%;
}

.account-photo::after {
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, #051f2fee 0%, #062330b8 23%, transparent 59%);
}

.account-photo-copy {
  padding: clamp(1.3rem, 4vw, 3rem);
  max-width: 30rem;
}

.account-photo-copy h2 {
  margin: 0 0 .55rem;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
}

.account-photo-copy p {
  margin: 0;
  color: #eef7f7;
  font-size: .98rem;
  line-height: 1.55;
}

.account-entry-body {
  align-self: center;
  width: 100%;
  max-width: 560px;
  padding: clamp(1.4rem, 4vw, 3.5rem);
}

.account-entry-signup { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
.account-entry-signup .account-entry-body { max-width: none; }

.account-entry-body h1,
.account-heading h1 {
  margin: 1.35rem 0 .8rem;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  overflow-wrap: anywhere;
}

.account-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  background: #edf5f5;
  border: 1px solid #dee9e9;
  border-radius: .7rem;
  padding: .32rem;
}

.account-switch a {
  display: grid;
  place-content: center;
  min-height: 44px;
  padding: .38rem .6rem;
  border-radius: .47rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}

.account-switch a[aria-current="page"] {
  background: var(--navy);
  color: white;
}

.account-switch a:not([aria-current]):hover {
  background: white;
}

.account-form {
  display: grid;
  gap: .9rem;
  margin-block: 1.4rem 0;
}

.account-form label {
  display: grid;
  gap: .36rem;
  min-width: 0;
  font-size: .93rem;
  font-weight: 700;
}

.account-form :is(input:not([type="hidden"]), select, textarea) {
  width: 100%;
  min-height: 48px;
  border: 1px solid #a9bfc5;
  border-radius: .44rem;
  padding: .63rem .75rem;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.5 'DM Sans', sans-serif;
}

.account-form textarea { resize: vertical; }

#account-main :is(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.account-form button {
  border-radius: .42rem;
  margin-top: .15rem;
}

.account-form button:disabled { opacity: .65; }

.account-recovery,
.account-form-footer a,
.account-notice a {
  color: #08707b;
  width: fit-content;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.account-recovery { justify-self: end; }
.account-form-footer { margin-top: 1.35rem; }

.account-form-footer p,
p.account-muted {
  color: #456471;
  font-size: .93rem;
  line-height: 1.6;
}

.account-form-footer p { margin: 0; }

.account-notice {
  margin-block: 1rem;
  padding: .75rem 1rem;
  border-inline-start: 3px solid var(--teal);
  border-radius: .3rem;
  background: #eaf5f5;
  font-size: .93rem;
  line-height: 1.6;
}

.account-notice p { margin: 0; }
.account-notice[role="alert"] { border-inline-start-color: #a64426; background: #fff3ed; }
.account-auth-status { margin: 0; }
.account-field-help { font-size: .85rem; line-height: 1.45; font-weight: 400; color: #456471; }
.account-create-link { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; }
.account-create-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #9bbcc0;
  border-radius: .42rem;
  padding: .5rem .8rem;
  text-decoration: none;
}
.account-create-link a:hover { background: #eaf5f5; }
.account-continue { margin-block-start: .5rem; }

.account-dashboard {
  max-width: 1130px;
  margin-inline: auto;
}

.account-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
}

.account-toolbar .account-switch {
  flex: 0 1 32rem;
}

.account-logout .text-link {
  min-height: 44px;
  background: transparent;
  border: 0;
  padding: .4rem .2rem;
  text-decoration: underline;
  white-space: nowrap;
}

.account-heading { margin-block: clamp(1.5rem, 4vw, 3.25rem) 1.25rem; }
.account-heading h1 { margin: 0 0 .45rem; }
.account-heading p { margin: 0; overflow-wrap: anywhere; color: #456471; }
.account-edit-profile { display: inline-block; margin-block-start: .75rem; }

.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.1rem;
}

.account-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: clamp(1.25rem, 3.5vw, 2.15rem);
}

.account-card h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.account-card p { margin-top: 0; color: #405e6a; }
.account-card-accent { background: var(--navy); color: white; }
.account-card-accent p { color: #d4e6eb; }

.account-bookings {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.account-bookings li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem 1rem;
  flex-wrap: wrap;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}

.account-bookings time { color: #405e6a; }
.account-application { max-width: 48rem; }
.account-application-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-field-wide { grid-column: 1 / -1; }
.account-profile-note { margin: -.25rem 0 0; font-size: .9rem; }
.account-notice-success { background: #eaf5ef; border-color: #287356; }
.account-form input[readonly] { background: #f3f7f8; }

.account-application-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  margin-top: 1.35rem;
}

@media (max-width: 740px) {
  .account-entry,
  .account-dashboard-grid { grid-template-columns: 1fr; }
  .account-entry-body { max-width: none; }
  .account-photo { min-height: clamp(185px, 47vw, 295px); }
  .account-photo img { object-position: center 43%; }
}

@media (max-width: 540px) {
  .account-application-fields { grid-template-columns: 1fr; }
  .account-toolbar .account-switch { flex-basis: auto; }
  .account-switch a { font-size: .82rem; }
}
