.auth-page__body,
.account-page__body {
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 8vw, 80px);
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 32px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.account-card {
  width: 100%;
  padding: clamp(24px, 4vw, 32px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-field span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-field input {
  padding: 12px 14px;
  border: 1px solid var(--sky-200);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
}

.auth-field input:focus {
  outline: 2px solid var(--sky-300);
  border-color: var(--sky-500);
}

.auth-card__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sky-600), var(--mint-500));
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-card__submit:hover {
  filter: brightness(1.05);
}

.auth-card__switch {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-card__switch a {
  color: var(--sky-700);
  font-weight: 600;
}

.auth-card__error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
}

.account-page__hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.account-page__logout {
  padding: 10px 18px;
  border: 1px solid var(--sky-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
}

.account-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--sky-100);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.account-tabs::-webkit-scrollbar {
  display: none;
}

.account-tabs__btn {
  flex-shrink: 0;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.account-tabs__btn.is-active {
  color: var(--sky-700);
  background: var(--white);
  border-bottom-color: var(--sky-600);
}

.account-panel {
  width: 100%;
}

.account-card--profile {
  max-width: 480px;
}

.account-form--profile {
  max-width: 420px;
}

.account-card__title {
  margin: 0 0 20px;
  font-size: 1.25rem;
}

.account-form__submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--sky-600), var(--mint-500));
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-form__submit--secondary {
  background: var(--sky-600);
}

.account-field__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.account-password {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--sky-100);
}

.account-password__title {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.account-flash {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.account-flash--ok {
  background: #ecfdf5;
  color: #166534;
}

.account-flash--error {
  background: #fef2f2;
  color: #b91c1c;
}

.account-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-order {
  padding: clamp(16px, 2.5vw, 22px);
  border: 1px solid var(--sky-100);
  border-radius: var(--radius-sm);
  background: var(--sky-50);
}

.account-order__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.account-order__status {
  font-size: 0.85rem;
  color: var(--sky-700);
  font-weight: 600;
}

.account-order__meta {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.account-order__lines {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-order-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.account-order-line__thumb,
.account-order-bundle__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--sky-100);
  background: var(--white);
  display: block;
}

.account-order-bundle__thumb {
  width: 40px;
  height: 40px;
}

.account-order-line__thumb img,
.account-order-bundle__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-order-line__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--sky-100), var(--mint-100));
}

.account-order-line__placeholder--sm {
  min-height: 40px;
}

.account-order-line__body {
  flex: 1;
  min-width: 0;
}

.account-order-line__name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.account-order-line__name:hover {
  color: var(--sky-700);
}

.account-order-bundle {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-order-bundle__item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.account-order-bundle__name {
  color: var(--text-muted);
  text-decoration: none;
}

.account-order-bundle__name:hover {
  color: var(--sky-700);
}

.account-order__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sky-700);
}

.account-card__empty {
  color: var(--text-muted);
}
