/* iRegg Auth Enterprise — shared Register + Login language */

html.ir-auth-shell,
html.ir-auth-shell body {
  min-height: 100%;
  background: #f8fafc;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.ir-auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.ir-auth-split--register {
  grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
}

.ir-auth-visual--rail {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  justify-content: space-between;
}

.ir-auth-visual-media--muted {
  filter: saturate(0.55) brightness(0.72);
  transform: scale(1.02);
}

.ir-auth-visual-scrim--rail {
  background:
    linear-gradient(105deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.88) 55%, rgba(15, 23, 42, 0.78) 100%);
}

.ir-auth-visual-inner--rail {
  max-width: 16rem;
  height: 100%;
  justify-content: flex-start;
  gap: 1.25rem;
}

.ir-auth-visual-line {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: rgba(248, 250, 252, 0.88);
}

.ir-auth-visual-foot {
  margin: auto 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.45);
}

.ir-auth-panel--register {
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 255, 0.04), transparent 55%),
    #fff;
}

.ir-auth-mobile-brand {
  display: none;
}

.ir-auth-split--login {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}

/* ── Visual panel ── */
.ir-auth-visual {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  color: #f8fafc;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.ir-auth-visual-media {
  position: absolute;
  inset: 0;
  background: url("/site-assets/iregg_background.jpg") left center / cover no-repeat;
  z-index: 0;
}

.ir-auth-visual-media--left {
  background-position: left center;
}

.ir-auth-visual-media--right {
  background-position: right center;
}

.ir-auth-visual-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.55) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, transparent 40%);
}

.ir-auth-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 34rem;
  flex: 1 1 auto;
}

.ir-auth-visual-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.ir-auth-visual-brand img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.ir-auth-visual-tagline {
  margin: 0;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}

.ir-auth-visual-headline {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #fff;
}

.ir-auth-visual-sub {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.78);
  max-width: 32rem;
}

.ir-auth-cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ir-auth-cap-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.88);
  line-height: 1.35;
}

.ir-auth-cap-list li i,
.ir-auth-cap-list li .ir-auth-cap-icon {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  color: #60a5fa;
}

.ir-auth-cap-list--quiet {
  gap: 0.45rem;
}

.ir-auth-cap-list--quiet li {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.82);
}

.ir-auth-cap-mark {
  flex: 0 0 0.4rem;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: #60a5fa;
  opacity: 0.85;
}

.ir-auth-card--register {
  width: min(100%, 520px);
}

.ir-auth-card--register .ir-auth-wordmark {
  height: 32px;
  margin-bottom: 1rem;
}

.ir-auth-card--register h1 {
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.ir-auth-card--register .ir-auth-lead {
  margin-bottom: 1.15rem;
  font-size: 0.925rem;
}

.ir-auth-card--register .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
}

.ir-auth-card--register .form-control {
  padding: 0.58rem 0.8rem;
}

.ir-auth-card--register .ir-auth-strength {
  margin-top: 0.3rem;
}

.ir-auth-card--register .ir-auth-strength__label {
  font-size: 0.7rem;
}

.ir-auth-card--register .ir-auth-footer-links {
  margin-top: 1rem;
}

.ir-auth-report-preview--compact {
  padding: 0.85rem 0.95rem;
  max-width: 20rem;
}

.ir-auth-report-preview__summary {
  margin: 0.55rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
}

.ir-auth-report-preview__sep {
  opacity: 0.5;
}

.ir-auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.ir-auth-metric {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
}

.ir-auth-metric__label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.55);
  margin-bottom: 0.25rem;
}

.ir-auth-metric__value {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}

/* Report / product preview (register) */
.ir-auth-report-preview {
  margin-top: auto;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  max-width: 22rem;
}

.ir-auth-report-preview__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563ff;
}

.ir-auth-report-preview__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.ir-auth-report-preview__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ir-auth-report-preview__meta {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.ir-auth-report-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

.ir-auth-report-preview__list {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0 0;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 0.4rem;
}

.ir-auth-report-preview__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #334155;
}

.ir-auth-report-preview__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #2563ff;
  flex-shrink: 0;
}

/* Login capability card */
.ir-auth-workspace-card {
  margin-top: auto;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  max-width: 22rem;
}

.ir-auth-workspace-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.6);
}

.ir-auth-workspace-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.ir-auth-workspace-card li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.9);
}

.ir-auth-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Form panel ── */
.ir-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  background: #fff;
}

.ir-auth-card {
  width: min(100%, 440px);
}

.ir-auth-split--login .ir-auth-card {
  width: min(100%, 420px);
}

.ir-auth-card .ir-auth-wordmark {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 1.35rem;
  display: block;
}

.ir-auth-split--login .ir-auth-card .ir-auth-wordmark {
  height: 32px;
  max-width: 120px;
  margin-bottom: 1.5rem;
}

.ir-auth-card .ir-auth-symbol {
  height: 28px;
  width: 28px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  display: block;
}

.ir-auth-card h1,
.ir-auth-card h2 {
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.4rem;
}

.ir-auth-card .ir-auth-lead {
  color: #64748b;
  font-size: 0.925rem;
  line-height: 1.45;
  margin: 0 0 1.35rem;
}

.ir-auth-trust {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 0.45rem;
}

.ir-auth-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #334155;
}

.ir-auth-trust .ir-auth-check {
  width: 1.05rem;
  height: 1.05rem;
  font-size: 0.65rem;
}

.ir-auth-card .form-label {
  font-weight: 500;
  color: #0f172a;
  font-size: 0.875rem;
}

.ir-auth-card .form-control {
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  border-color: #e2e8f0;
}

.ir-auth-card .form-control:focus {
  border-color: rgba(37, 99, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.12);
}

.ir-auth-card .btn-primary {
  border-radius: 12px;
  padding: 0.78rem 1rem;
  font-weight: 500;
  background: #2563ff;
  border-color: #2563ff;
}

.ir-auth-card .btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 255, 0.22);
}

.ir-auth-card .btn-primary:disabled {
  opacity: 0.7;
}

.ir-auth-card .btn-label-secondary {
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 500;
}

.ir-auth-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.ir-auth-row-actions a {
  color: #2563ff;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.875rem;
}

.ir-auth-row-actions a:hover {
  text-decoration: underline;
}

.ir-auth-strength {
  margin-top: 0.45rem;
}

.ir-auth-strength__bar {
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.ir-auth-strength__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #94a3b8;
  transition: width 0.2s ease, background 0.2s ease;
}

.ir-auth-strength__fill.is-weak {
  width: 25%;
  background: #ef4444;
}

.ir-auth-strength__fill.is-fair {
  width: 50%;
  background: #f59e0b;
}

.ir-auth-strength__fill.is-good {
  width: 75%;
  background: #2563ff;
}

.ir-auth-strength__fill.is-strong {
  width: 100%;
  background: #22c55e;
}

.ir-auth-strength__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
}

.ir-auth-feedback {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  display: none;
}

.ir-auth-feedback.is-visible {
  display: block;
}

.ir-auth-feedback--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #b91c1c;
}

.ir-auth-feedback--warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
}

.ir-auth-capslock {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #b45309;
}

.ir-auth-capslock.is-visible {
  display: block;
}

.ir-auth-security-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
  text-align: center;
}

.ir-auth-footer-links {
  margin-top: 1.35rem;
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
}

.ir-auth-footer-links a {
  color: #2563ff;
  text-decoration: none;
  font-weight: 500;
}

.ir-auth-footer-links a:hover {
  text-decoration: underline;
}

.ir-auth-legal {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

.ir-auth-legal a {
  color: #64748b;
  text-decoration: none;
}

.ir-auth-legal a:hover {
  color: #2563ff;
  text-decoration: underline;
}

.ir-auth-password-toggle {
  cursor: pointer;
  border: 1px solid #e2e8f0;
  border-left: 0;
  background: #fff;
}

.ir-auth-password-toggle:focus-visible {
  outline: 2px solid rgba(37, 99, 255, 0.45);
  outline-offset: 1px;
  z-index: 2;
}

@media (max-width: 1199.98px) {
  .ir-auth-split--register {
    grid-template-columns: minmax(12rem, 0.36fr) minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .ir-auth-split,
  .ir-auth-split--login {
    grid-template-columns: 1fr;
  }

  .ir-auth-split--register {
    grid-template-columns: 1fr;
  }

  .ir-auth-split--register .ir-auth-visual--rail {
    display: none;
  }

  .ir-auth-split--register .ir-auth-mobile-brand {
    display: inline-block;
    margin-bottom: 0.25rem;
  }

  .ir-auth-visual {
    min-height: auto;
    padding: 1.35rem 1.25rem 1.5rem;
    gap: 1rem;
  }

  .ir-auth-visual-inner {
    max-width: none;
  }

  .ir-auth-visual-headline {
    font-size: 1.45rem;
  }

  .ir-auth-metrics,
  .ir-auth-report-preview {
    display: none;
  }

  .ir-auth-split--login .ir-auth-workspace-card {
    display: none;
  }

  .ir-auth-cap-list {
    display: none;
  }

  .ir-auth-panel,
  .ir-auth-panel--register {
    padding: 1.5rem 1.25rem 2rem;
    align-items: flex-start;
  }

  .ir-auth-card,
  .ir-auth-card--register {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .ir-auth-panel--register {
    padding: 1.25rem 1.15rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ir-auth-strength__fill,
  .ir-auth-card .btn-primary {
    transition: none;
  }
}
