/* Auth page layout */
.auth-page {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Inter,
    Roboto,
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif;
}

.auth-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(15, 23, 42, 0.04);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.auth-header {
  text-align: center;
  margin-bottom: 18px;
}

.auth-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.auth-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.7);
}

.auth-form {
  margin-top: 14px;
}

.auth-errors {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  font-size: 13px;
  list-style: none;
}

.auth-field {
  margin: 0 0 14px;
}

.auth-label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.72);
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.auth-input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-field-error {
  margin-top: 6px;
  font-size: 12px;
  color: #b91c1c;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 18px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.75);
  user-select: none;
}

.auth-remember input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.auth-remember input[type="checkbox"]::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  opacity: 0;
}

.auth-remember input[type="checkbox"]:checked {
  background: #0b1220;
  border-color: rgba(2, 6, 23, 0.65);
}

.auth-remember input[type="checkbox"]:checked::after {
  opacity: 1;
}

.auth-remember input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(2, 6, 23, 0.08);
}

.auth-link {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.6);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #111827, #0b1220);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.2);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    filter 120ms ease;
}

.auth-submit:hover {
  filter: brightness(1.02);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.24);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
}

.auth-footer a {
  color: rgba(37, 99, 235, 0.95);
  text-decoration: none;
}

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