.account-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.account-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.account-heading h1 {
  margin: 6px 0 12px;
  font: 800 clamp(2.5rem, 7vw, 4.8rem)/0.95 "Bricolage Grotesque", sans-serif;
}

.eyebrow {
  color: #0e6f77;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-grid,
.rental-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.auth-grid[hidden],
#dashboard[hidden],
.account-status[hidden],
#no-rentals[hidden],
#priority-banner[hidden],
#no-invoices[hidden] {
  display: none !important;
}

.account-card {
  padding: 28px;
  border: 1px solid rgba(12, 58, 67, .14);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(8, 47, 55, .08);
}

.account-card h2,
.account-card h3 {
  margin-top: 0;
  font-family: "Bricolage Grotesque", sans-serif;
}

.account-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.account-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.account-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #abc4c8;
  border-radius: 10px;
  font: inherit;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #4a6a70;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #164e55;
  background: #eef6f6;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle .icon-hide { display: none; }
.password-toggle.is-visible .icon-show { display: none; }
.password-toggle.is-visible .icon-hide { display: block; }

.password-meter {
  display: grid;
  gap: 6px;
  margin-top: -6px;
}

.password-meter[hidden] { display: none; }

.password-meter__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ecee;
}

.password-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #d23b3b;
  transition: width .18s ease, background .18s ease;
}

.password-meter.is-1 .password-meter__fill { width: 28%; background: #d23b3b; }
.password-meter.is-2 .password-meter__fill { width: 52%; background: #e07a14; }
.password-meter.is-3 .password-meter__fill { width: 76%; background: #8aaa22; }
.password-meter.is-4 .password-meter__fill { width: 100%; background: #1c8c4e; }

.password-meter__label {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  color: #5c7074;
}

.password-meter.is-1 .password-meter__label { color: #a32626; }
.password-meter.is-2 .password-meter__label { color: #9a5208; }
.password-meter.is-3 .password-meter__label { color: #5d7412; }
.password-meter.is-4 .password-meter__label { color: #146b3a; }

.password-match {
  margin: -6px 0 0;
  color: #a32626;
  font-size: .92rem;
  font-weight: 700;
}

.password-match[hidden] { display: none; }

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: #0e6f77;
  color: #fff;
  font: 700 1rem "IBM Plex Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.account-button:disabled { opacity: .55; cursor: wait; }
.account-button--ghost { background: #e8f2f2; color: #164e55; }
.account-button--priority { background: #1a7aad; }
.account-button--priority:hover { background: #15648f; }

.account-status {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff3d8;
  color: #684600;
  font-weight: 700;
}

.account-status.is-error { background: #ffe4e1; color: #8a281e; }
.account-status.is-success { background: #dff4e9; color: #145b39; }

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-heading h2 { margin: 4px 0; }
.dashboard-heading p { margin: 0; }

.rental-card__top,
.rental-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.rental-card__top strong { color: #0e6f77; }
.rental-row { padding: 10px 0; border-bottom: 1px solid #e1ecee; }
.rental-row:last-of-type { border-bottom: 0; }
.rental-balance { margin: 20px 0; padding: 16px; border-radius: 12px; background: #f0f8f8; }
.rental-paid { color: #17603d; font-weight: 700; }
.empty-account { text-align: center; }

.priority-banner,
.account-section {
  margin-bottom: 28px;
}

.priority-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(26, 122, 173, .25);
  border-radius: 20px;
  background: #f3f9fc;
}

.priority-banner h2 {
  margin: 0 0 6px;
  font-family: "Bricolage Grotesque", sans-serif;
}

.priority-banner p { margin: 0; }

.priority-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.previous-lot-status {
  margin-top: 10px;
  color: #8a281e;
  font-weight: 700;
}

.account-section h2 {
  margin: 0 0 14px;
  font-family: "Bricolage Grotesque", sans-serif;
}

.invoice-list { display: grid; gap: 12px; }

.invoice-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(12, 58, 67, .14);
  border-radius: 16px;
  background: #fff;
}

.invoice-row h3 { margin: 0 0 4px; font-size: 1.05rem; }
.invoice-row p { margin: 0; color: #4d656a; }
.invoice-row a { font-weight: 700; color: #1a7aad; }
.invoice-row .is-refunded { color: #8a281e; font-weight: 700; }

@media (max-width: 720px) {
  .account-shell { padding-top: 44px; }
  .auth-grid, .rental-grid { grid-template-columns: 1fr; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading .account-button,
  .priority-banner .account-button { width: 100%; }
  .priority-banner,
  .invoice-row { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; }
  .priority-banner__actions { width: 100%; }
}

