/* ZapSet Admin Auth
   Scoped styles for pre-login pages (index / forgot / reset).
   Keeps auth pages independent from dashboard-only bundles.
*/

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg, #F8FAFC);
  color: var(--text, #0F172A);
}

.auth-page .auth-center {
  width: 100%;
  max-width: 600px;
}

.auth-page .auth-card {
  width: 100%;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 16px;
  background: var(--card, #FFFFFF);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  padding: clamp(18px, 3vw, 28px);
}

.auth-page .auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
}

.auth-page img.auth-logo {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}

.alert {
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
  font-weight: 600;
}

.alert--error {
  border-color: rgba(239, 68, 68, 0.45);
  color: #B91C1C;
  background: rgba(239, 68, 68, 0.10);
}

.auth-page form {
  display: grid;
  gap: 12px;
}

.auth-page form .zs-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.auth-page .zs-label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  color: rgba(0, 0, 0, .78);
}

.auth-page .zs-input,
.auth-page .zs-textarea,
.auth-page .zs-select,
.auth-page input[type="text"],
.auth-page input[type="email"],
.auth-page input[type="password"],
.auth-page input[type="tel"] {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, .86);
  background: #fff;
  border: 1px solid #E2E8F0;
  outline: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.auth-page .zs-input::placeholder,
.auth-page .zs-textarea::placeholder,
.auth-page input::placeholder {
  color: rgba(0, 0, 0, .40);
}

.auth-page .zs-input:focus,
.auth-page .zs-textarea:focus,
.auth-page .zs-select:focus,
.auth-page input[type="text"]:focus,
.auth-page input[type="email"]:focus,
.auth-page input[type="password"]:focus,
.auth-page input[type="tel"]:focus {
  border-color: rgba(47, 184, 109, .75);
  background: rgba(47, 184, 109, .04);
  box-shadow: 0 0 0 3px rgba(47, 184, 109, .20), 0 1px 0 rgba(15, 23, 42, .04);
}

.auth-page .auth-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 10px;
}

.auth-page .auth-actions + .auth-actions {
  margin-top: 14px;
}

.auth-page .zs-pill {
  appearance: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: transform .05s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.auth-page .zs-pill:active { transform: translateY(1px); }
.auth-page .zs-pill:disabled { opacity: .65; cursor: not-allowed; }
.auth-page .zs-pill.md { padding: 6px 14px; font-size: 14px; }

.auth-page .zs-cta {
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
}

.auth-page .zs-solid-primary {
  background: var(--primary, #1F3C88);
  border-color: var(--primary, #1F3C88);
  color: #fff;
}

.auth-page .zs-solid-primary:hover {
  filter: brightness(1.04);
}

.auth-page .zs-no-dot::before,
.auth-page .zs-no-dot::after {
  content: none !important;
  display: none !important;
}

.auth-page form button.zs-pill,
.auth-page form a.zs-pill {
  justify-self: start;
  align-self: start;
  width: auto;
}

@media (max-width: 640px) {
  .auth-page {
    padding: 16px;
  }

  .auth-page .auth-card {
    padding: 18px;
  }

  .auth-page .auth-actions {
    gap: 12px;
  }
}
