/* Halaman login dan daftar memakai variabel warna dari admin.css. */

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.auth-page .auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
}

.auth-page .auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 30px 20px 40px;
}

.auth-page .auth-card {
  width: 100%;
  max-width: 460px;
  padding: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.auth-page .auth-intro {
  margin-bottom: 28px;
}

.auth-page .auth-emblem {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 25px;
  font-weight: 750;
}

.auth-page .auth-intro .eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 1.8px;
}

.auth-page .auth-intro h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 34px);
  line-height: 1.2;
  letter-spacing: -1px;
}

.auth-page .auth-intro .muted {
  margin: 12px 0 0;
  font-size: 14px;
}

.auth-page .auth-form {
  display: grid;
  gap: 20px;
}

.auth-page .auth-field {
  display: grid;
  gap: 8px;
}

.auth-page .auth-field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.auth-page .auth-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.auth-page .auth-field input::placeholder {
  color: var(--muted);
  opacity: 1;
  font-size: 14px;
}

.auth-page .auth-field input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-page .auth-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-page .auth-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 650;
}

.auth-page .auth-submit:hover {
  filter: brightness(0.94);
}

.auth-page .auth-switch {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.auth-page .auth-switch a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-page .auth-notice {
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.auth-page .auth-notice p {
  margin: 0;
  font-weight: 600;
}

.auth-page .auth-notice ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.auth-page .auth-error {
  background: #fff1f2;
  border-color: #e6a6af;
  color: #9f253b;
}

.auth-page .auth-success {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Warna pesan error khusus mode gelap. */
:root[data-theme="dark"] .auth-page .auth-error {
  background: #342128;
  border-color: #955166;
  color: #ffc1cb;
}

.auth-page .auth-caption {
  max-width: 460px;
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.auth-page .auth-footer {
  padding: 18px 20px 24px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 520px) {
  .auth-page .auth-header {
    padding: 20px;
  }

  .auth-page .auth-main {
    padding: 16px 16px 28px;
  }

  .auth-page .auth-card {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .auth-page .brand small {
    font-size: 10px;
  }
}
