.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px 20px;
  background: radial-gradient(ellipse at top, rgba(225, 15, 24, 0.14), transparent 58%), #0e0e0e;
  color: #171717;
}

.auth-layout {
  width: min(100%, 420px);
  margin: auto;
}

.auth-card {
  padding: 30px 32px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #141414;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  animation: auth-card-enter 0.38s ease both;
}

@keyframes auth-card-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-back-link {
  display: inline-block;
  color: #c7c7c7;
  font-size: 0.9rem;
  text-decoration: none;
}

.auth-back-link:hover,
.auth-switch a:hover {
  color: #a70c12;
}

.auth-logo-window {
  width: 220px;
  height: 78px;
  margin: 8px auto 20px;
  overflow: hidden;
  background: #171717;
}

.auth-logo-window img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.auth-title {
  margin: 0;
  color: #f5f5f5;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.auth-description {
  margin: 8px 0 22px;
  color: #c7c7c7;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-field label {
  display: block;
  margin: 0 0 6px;
  color: #c7c7c7;
  font-size: 0.95rem;
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #0a0a0a;
  box-shadow: none;
  color: #f5f5f5;
}

.auth-field input:focus {
  border-color: #e10f18;
  background: #111;
  box-shadow: 0 0 0 3px rgba(225, 15, 24, 0.2);
}

.auth-submit,
.auth-secondary,
.auth-logout {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.auth-submit {
  margin-top: 4px;
  background: #e10f18;
  color: #fff;
}

.auth-submit:hover {
  background: #bf0d14;
}

.auth-secondary,
.auth-logout {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #f5f5f5;
}

.auth-message:not(:empty) {
  padding: 10px 12px;
  border: 1px solid rgba(225, 15, 24, 0.22);
  border-radius: 6px;
  background: rgba(225, 15, 24, 0.08);
  color: #9b1117;
  font-size: 0.9rem;
}

.auth-switch {
  margin: 20px 0 0;
  color: #c7c7c7;
  font-size: 0.92rem;
  text-align: center;
}

.auth-switch a {
  color: #c10e16;
  font-weight: 600;
  text-decoration: none;
}

.auth-credit {
  margin-top: 18px;
  color: #626262;
  font-size: 0.95rem;
  text-align: center;
}

.auth-credit a {
  color: #c7c7c7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-credit a:hover {
  color: #ff3f41;
}

.auth-dashboard .auth-description {
  margin-bottom: 16px;
}

.auth-account-actions {
  display: grid;
  gap: 10px;
}

.auth-section-title {
  margin: 24px 0 10px;
  color: #f5f5f5;
  font-size: 1.05rem;
}

.auth-list {
  display: grid;
  gap: 8px;
  color: #424242;
}

.auth-dashboard .cart-entry,
.auth-dashboard .purchase-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111;
  color: #f5f5f5;
}

.auth-dashboard .cart-entry p,
.auth-dashboard .purchase-card p {
  color: #c7c7c7;
}

.auth-logout {
  margin-top: 22px;
}

@media (max-width: 480px) {
  .auth-page {
    padding: 20px 14px 16px;
  }

  .auth-card {
    padding: 24px 20px 26px;
  }

  .auth-title {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card {
    animation: none;
  }
}
