/* ==========================================================================
   IVA Auth - split-screen authentication pages (login / register / reset)
   Pairs with local Bootstrap 5 + passwords.css. Fonts: Outfit + system stack.
   ========================================================================== */

:root {
  --au-green: #1a7a4a;
  --au-green-dark: #14603a;
  --au-green-deep: #0b3d24;
  --au-green-soft: #e8f5ee;
  --au-canvas: #f6f8f7;
  --au-ink: #1c2b23;
  --au-muted: #5c6d64;
  --au-border: #dde5e0;
  --au-radius: 12px;
  --au-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --au-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

body.auth {
  margin: 0;
  min-height: 100vh;
  display: flex;
  font-family: var(--au-body);
  color: var(--au-ink);
  background-color: var(--au-canvas);
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Brand panel (left)
   -------------------------------------------------------------------------- */
.auth-brand {
  width: 66.666%;
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3.2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--au-green-deep), var(--au-green));
}
.auth-brand h2, .auth-brand .tagline { text-shadow: 0 2px 12px rgba(8, 40, 24, 0.55); }
.auth-brand-stat { background-color: rgba(8, 40, 24, 0.45); }

/* Rotating photo slides behind the brand panel */
.auth-slides { position: absolute; inset: 0; z-index: 0; }
.auth-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  transform: scale(1.05);
}
.auth-slide.on {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.4s ease, transform 8s linear;
}
.auth-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(150deg, rgba(11, 61, 36, 0.82) 0%, rgba(20, 96, 58, 0.58) 55%, rgba(26, 122, 74, 0.35) 100%);
}
.auth-brand > .logos,
.auth-brand > .auth-brand-body,
.auth-brand > .foot { position: relative; z-index: 2; }
.auth-brand .logos img { height: 56px; width: auto; }
.auth-brand h2 {
  font-family: var(--au-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}
.auth-brand .tagline {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 420px;
}
.auth-brand-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.auth-brand-stat {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--au-radius);
  padding: 0.85rem 1.3rem;
  min-width: 140px;
}
.auth-brand-stat .num {
  font-family: var(--au-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}
.auth-brand-stat .lbl { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); }
.auth-brand .foot { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 991.98px) {
  .auth-brand { display: none; }
}

/* --------------------------------------------------------------------------
   Form panel (right)
   -------------------------------------------------------------------------- */
.auth-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 660px; }

.auth-logo-sm { display: none; text-align: center; margin-bottom: 1.4rem; }
.auth-logo-sm img { height: 48px; width: auto; }
@media (max-width: 991.98px) {
  .auth-logo-sm { display: block; }
}

.auth-card h1 {
  font-family: var(--au-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.auth-card .lead-sm {
  color: var(--au-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}
.auth-card .lead-sm a { font-weight: 600; }

.auth-card a { color: var(--au-green); text-decoration: none; }
.auth-card a:hover { color: var(--au-green-dark); }

/* Form elements */
.auth-card label.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.auth-card .form-control,
.auth-card .form-select {
  border-color: var(--au-border);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  color: var(--au-ink);
  background-color: #fff;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: var(--au-green);
  box-shadow: 0 0 0 3px rgba(26, 122, 74, 0.15);
}
.auth-card .input-group-text {
  background-color: #fff;
  border-color: var(--au-border);
  color: var(--au-muted);
  border-radius: 10px;
}
.auth-card .input-group .form-control { border-radius: 10px; }
.auth-card .input-group .input-group-text:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.auth-card .input-group .input-group-text:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.auth-card .input-group .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.auth-card .input-group .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: var(--au-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background-color: var(--au-green);
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  margin-top: 0.4rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.auth-btn:hover {
  background-color: var(--au-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 45, 30, 0.2);
}

.auth-alt {
  text-align: center;
  color: var(--au-muted);
  font-size: 0.92rem;
  margin-top: 1.6rem;
}
.auth-alt a { font-weight: 600; }

.auth-terms { font-size: 0.85rem; color: var(--au-muted); line-height: 1.6; }

/* Password checker boxes (passwords.css ids) inherit - soften them */
#message, #confirm_message {
  border-radius: 10px;
  font-size: 0.88rem;
}
