/* Authentication pages.
   Use this file for login/register/reset-password layout and password helper states. */
.auth-page-body {
  min-height: 100vh;
  margin: 0;
}

.auth-page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
  padding: 24px;
}

.auth-card--compact {
  max-width: 400px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo img {
  max-height: 60px;
  margin-bottom: 15px;
}

.auth-card-header {
  margin-bottom: 16px;
}

.auth-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text);
}

.auth-card-subtitle {
  color: var(--muted);
  font-size: .95rem;
}

.auth-card-footer {
  margin-top: 12px;
}

.auth-submit-btn {
  min-height: 44px;
  font-weight: 600;
}

.password-toggle-btn {
  min-width: 52px;
}

.password-rules {
  list-style: none;
}

.password-rule {
  font-size: .9rem;
  margin: .2rem 0;
  display: flex;
  align-items: center;
}

.password-rule i {
  font-size: .45rem;
}

.password-rule.is-invalid {
  color: #dc2626;
}

.password-rule.is-valid {
  color: #16a34a;
}

:root.dark .auth-card,
.dark .auth-card {
  background: #111b2b;
  border-color: #2a3e57;
}

:root.dark .auth-card-title,
.dark .auth-card-title {
  color: #eaf2fb;
}

:root.dark .auth-card-subtitle,
.dark .auth-card-subtitle {
  color: #9fb0c7;
}

:root.dark .password-rule.is-invalid,
.dark .password-rule.is-invalid {
  color: #f87171;
}

:root.dark .password-rule.is-valid,
.dark .password-rule.is-valid {
  color: #4ade80;
}

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

  .auth-card {
    padding: 18px;
    border-radius: 12px;
  }

  .auth-logo {
    margin-bottom: 20px;
  }
}

/* Image annotator */
