/* Fidomus — Login / auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  position: relative;
  background: var(--rx-navy);
  color: #e8eef7;
}

.auth-hero {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 28, 46, 0.75) 0%, rgba(15, 28, 46, 0.94) 100%),
    url("/static/logo2.jpeg") center / cover no-repeat;
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  color: var(--rx-navy);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-6) var(--space-6);
  box-shadow: var(--shadow-xl);
}

.auth-logo {
  width: auto;
  max-width: min(280px, 100%);
  max-height: 64px;
  height: auto;
  display: block;
  margin: 0 auto var(--space-4);
  object-fit: contain;
}

.auth-card h1 {
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.auth-field {
  margin-bottom: var(--space-4);
  text-align: left;
}

.auth-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  background: var(--rx-bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem;
}

.auth-tabs button {
  flex: 1;
  margin: 0;
  background: transparent;
  color: var(--rx-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.auth-tabs button.active {
  background: #fff;
  color: var(--rx-blue);
  box-shadow: var(--shadow-sm);
}

.auth-card button[type="submit"] {
  width: 100%;
  margin-top: var(--space-2);
}

.auth-hint {
  margin-top: var(--space-4);
  font-size: 0.8rem;
  color: var(--rx-muted);
  text-align: center;
  line-height: 1.45;
}

.auth-panel { display: none; text-align: center; }
.auth-panel.active { display: block; }

.auth-user-box {
  background: var(--rx-blue-soft);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-3) 0 var(--space-4);
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-user-box strong {
  display: inline-block;
  min-width: 6.5rem;
  color: #3a4d63;
}

.auth-btn-secondary {
  background: var(--rx-ghost-bg) !important;
  color: var(--rx-navy) !important;
  margin-top: var(--space-2);
}

.auth-btn-secondary:hover { background: var(--rx-border) !important; }

.auth-card .msg {
  text-align: center;
  margin-top: var(--space-4);
}
