/* ============================================
   AtlasHub — Auth Pages (Login, Register)
   ============================================ */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height, 52px) - 40px);
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  position: relative;
}

/* Language switcher */
.auth-lang-switcher {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.auth-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 10px;
  margin-top: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-entra-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
}

.auth-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Impersonate form */
.auth-impersonate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.auth-impersonate-form .auth-submit-btn {
  width: 100%;
  justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 24px 18px;
  }

  .auth-title {
    font-size: 1.05rem;
  }
}
