/* ─── Auth pages (login / register / forgot password) ─── */

.auth-page .header--sub .logo {
  text-decoration: none;
}

.auth-page__main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4.5rem);
  padding: 6rem 1.25rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.auth-card .cabinet-hero--compact {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-card .cabinet-hero__desc {
  margin-inline: auto;
}

.auth-status {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0, 230, 118, 0.42);
  border-left: 3px solid #00e676;
  background: #0b1511;
  color: #d9ffe9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

.auth-status__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #00e676;
  color: #00e676;
}

.auth-status__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-status p {
  min-width: 0;
}

.auth-input-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-frame:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.auth-input-frame .order-field__input,
.auth-input-frame .order-field__input:focus {
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none;
  font-size: 1rem;
}

.auth-input-frame .order-field__input:-webkit-autofill,
.auth-input-frame .order-field__input:-webkit-autofill:hover,
.auth-input-frame .order-field__input:-webkit-autofill:focus,
.auth-input-frame .order-field__input:-webkit-autofill:active {
  border: 0 !important;
  border-radius: 0 !important;
  background-color: var(--bg-elevated) !important;
  color: var(--text);
  caret-color: var(--text);
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-elevated) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-elevated) inset !important;
}

.auth-input-frame .order-field__input:autofill {
  border: 0 !important;
  border-radius: 0 !important;
  background-color: var(--bg-elevated) !important;
  color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg-elevated) inset !important;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-form__row .order-field__label {
  margin-bottom: 0;
}

.auth-form__link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-form__link:hover {
  color: var(--accent);
}

.auth-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}

.auth-form__checkbox input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.auth-form__footer {
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-form__footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-form__footer a:hover {
  text-decoration: underline;
}

.auth-card .order-widget__note {
  margin-top: 0.75rem;
  text-align: center;
}

@media (max-width: 480px) {
  .auth-page__main {
    padding: 5.5rem 1rem 2rem;
    align-items: flex-start;
  }

  .auth-card {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}
