/* UNYKU.ID x INFINITE SSO — unified authentication surface (saas, cleanex, infinity) */

/* Override Bootstrap 3 `html { font-size: 62.5% }` (10px) so 1rem = 16px */
html {
  font-size: 100%;
}

section.auth-shell,
section.auth-shell.section-full-page {
  --auth-forest: #0f291e;
  --auth-forest-mid: #163b2b;
  --auth-emerald: #226a4d;
  --auth-emerald-hover: #1a543d;
  --auth-emerald-active: #144230;
  --auth-emerald-mark: #338361;
  --auth-mint: #a9f2cc;
  --auth-canvas: #f5f8f6;
  --auth-surface: #ffffff;
  --auth-ink: #141f1a;
  --auth-muted: #4a5c53;
  --auth-line: #d8e2dc;
  --auth-radius: 18px;
  --auth-pad-x: 3.75rem;

  margin: 0;
  padding: 0;
  border: 0;
  background: var(--auth-canvas);
  height: auto;
  min-height: 100vh;
  font-size: 1rem;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.auth-shell > .container-fluid {
  padding: 0;
  margin: 0;
  width: 100%;
}

.auth-shell > .container-fluid > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
  min-height: 100vh;
}

/* Institutional panel (left) */
.auth-shell .left-side,
section.section-full-page.auth-shell .left-side {
  position: relative;
  overflow: hidden;
  float: none;
  flex: 0 0 43%;
  width: 43%;
  max-width: 43%;
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2.75rem var(--auth-pad-x) 2.25rem;
  background-color: var(--auth-forest);
  background-image:
    radial-gradient(120% 90% at 0% 0%, rgba(51, 131, 97, 0.34) 0%, rgba(15, 41, 30, 0) 62%),
    radial-gradient(90% 80% at 100% 100%, rgba(34, 106, 77, 0.28) 0%, rgba(15, 41, 30, 0) 65%),
    linear-gradient(165deg, #133526 0%, #0f291e 58%, #0b1f17 100%);
  color: #ffffff;
}

/* Neutralize theme SaaS pink overlay (`section.section-full-page .left-side:before`) */
.auth-shell .left-side::before,
section.section-full-page.auth-shell .left-side:before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(169, 242, 204, 0.04) 1px, transparent 1px),
              linear-gradient(180deg, rgba(169, 242, 204, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 75%);
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

.auth-shell .auth-watermark {
  position: absolute;
  right: -3.5rem;
  bottom: -2.25rem;
  width: 24rem;
  height: auto;
  color: var(--auth-mint);
  opacity: 0.055;
  z-index: 1;
  pointer-events: none;
}

.auth-shell .left-side .navbar-brand,
section.section-full-page.auth-shell .left-side .navbar-brand {
  position: relative;
  top: auto;
  left: auto;
  z-index: 2;
  float: none;
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 0;
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
}

.auth-shell .left-side .navbar-brand:hover,
.auth-shell .left-side .navbar-brand:focus {
  color: var(--auth-mint);
  text-decoration: none;
}

.auth-shell .left-side .navbar-brand:focus-visible {
  outline: 2px solid var(--auth-mint);
  outline-offset: 4px;
  border-radius: 4px;
}

.auth-shell .left-side .navbar-brand img {
  max-height: 2.5rem;
  width: auto;
}

.auth-shell .left-side .inner-text,
section.section-full-page.auth-shell .left-side .inner-text {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 36ch;
  margin: auto 0;
  text-align: left;
}

.auth-shell .left-side .inner-text h2,
section.section-full-page.auth-shell .left-side .inner-text h2 {
  margin: 0 0 0.875rem;
  font-size: clamp(1.75rem, 2.3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.auth-shell .auth-tagline {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.auth-shell .left-side .footer,
section.section-full-page.auth-shell .left-side .footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.auth-shell .auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1.125rem;
}

.auth-shell .left-side .footer a,
section.section-full-page.auth-shell .left-side .footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.16s ease;
}

.auth-shell .left-side .footer a:hover,
.auth-shell .left-side .footer a:focus {
  color: var(--auth-mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-shell .left-side .footer a:focus-visible {
  outline: 2px solid var(--auth-mint);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Action stage (right) */
.auth-shell .right-side,
section.section-full-page.auth-shell .right-side {
  float: none;
  flex: 1 1 57%;
  width: 57%;
  max-width: 57%;
  height: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2.75rem;
  background: var(--auth-canvas);
}

.auth-shell .right-side .centered,
.auth-shell .right-side .centered.form {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Authentication card */
.auth-shell .auth-card {
  width: 100%;
  max-width: 30.5rem;
  margin: 0 auto;
  padding: 2.875rem 2.625rem 2.5rem;
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  box-shadow:
    0 1px 2px rgba(20, 31, 26, 0.04),
    0 24px 48px -24px rgba(15, 41, 30, 0.16);
  text-align: left;
}

.auth-shell .auth-title {
  margin: 0 0 0.75rem;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--auth-ink);
}

.auth-shell .auth-lede {
  margin: 0 0 1.875rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--auth-muted);
}

.auth-shell .auth-card .alert {
  margin: 0 0 1.375rem;
  padding: 0.875rem 1.125rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Primary INFINITE SSO CTA */
.auth-shell .auth-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(15, 41, 30, 0.12);
  border-radius: 12px;
  background-color: var(--auth-emerald);
  color: #ffffff;
  font-size: 1.03125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 22px -10px rgba(34, 106, 77, 0.55);
  transition:
    background-color 0.16s ease,
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-shell .auth-cta:hover,
.auth-shell .auth-cta:focus {
  background-color: var(--auth-emerald-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 26px -10px rgba(26, 84, 61, 0.62);
}

.auth-shell .auth-cta:active {
  background-color: var(--auth-emerald-active);
  transform: translateY(0);
}

.auth-shell .auth-cta:focus-visible {
  outline: 3px solid var(--auth-ink);
  outline-offset: 3px;
}

.auth-shell .auth-cta-icon {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
}

/* Supporting note & help */
.auth-shell .auth-note {
  margin: 1.625rem 0 0;
  padding-top: 1.375rem;
  border-top: 1px solid var(--auth-line);
  font-size: 0.90625rem;
  line-height: 1.6;
  color: var(--auth-muted);
}

.auth-shell .auth-note strong {
  color: var(--auth-ink);
  font-weight: 600;
}

.auth-shell .auth-help {
  margin: 0.75rem 0 0;
  font-size: 0.90625rem;
  line-height: 1.5;
  color: var(--auth-muted);
}

.auth-shell .auth-help a {
  color: var(--auth-emerald);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-shell .auth-help a:hover,
.auth-shell .auth-help a:focus {
  color: var(--auth-emerald-hover);
}

.auth-shell .auth-help a:focus-visible {
  outline: 2px solid var(--auth-ink);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Wide desktop */
@media (min-width: 1440px) {
  .auth-shell .left-side,
  section.section-full-page.auth-shell .left-side {
    flex-basis: 44%;
    width: 44%;
    max-width: 44%;
  }
  .auth-shell .right-side,
  section.section-full-page.auth-shell .right-side {
    flex-basis: 56%;
    width: 56%;
    max-width: 56%;
  }
  .auth-shell .auth-card {
    max-width: 32.5rem;
    padding: 3.25rem 3rem 2.75rem;
  }
  .auth-shell .auth-title {
    font-size: 2.0625rem;
  }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
  section.auth-shell,
  section.auth-shell.section-full-page {
    --auth-pad-x: 2rem;
  }
  .auth-shell .left-side,
  section.section-full-page.auth-shell .left-side {
    flex-basis: 40%;
    width: 40%;
    max-width: 40%;
  }
  .auth-shell .right-side,
  section.section-full-page.auth-shell .right-side {
    flex-basis: 60%;
    width: 60%;
    max-width: 60%;
    padding: 2.5rem 1.75rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .auth-shell > .container-fluid > .row {
    min-height: 100vh;
    flex-direction: column;
  }
  .auth-shell .left-side,
  section.section-full-page.auth-shell .left-side,
  .auth-shell .right-side,
  section.section-full-page.auth-shell .right-side {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    float: none;
  }
  .auth-shell .left-side,
  section.section-full-page.auth-shell .left-side {
    gap: 1.25rem;
    padding: 1.5rem 1.25rem 1.75rem;
  }
  .auth-shell .left-side .inner-text,
  section.section-full-page.auth-shell .left-side .inner-text {
    margin: 0;
    max-width: 38ch;
  }
  .auth-shell .left-side .inner-text h2,
  section.section-full-page.auth-shell .left-side .inner-text h2 {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
  }
  .auth-shell .auth-tagline {
    margin-bottom: 0;
    font-size: 0.9375rem;
  }
  .auth-shell .left-side .footer,
  .auth-shell .auth-watermark {
    display: none;
  }
  .auth-shell .right-side,
  section.section-full-page.auth-shell .right-side {
    flex: 1 1 auto;
    align-items: flex-start;
    padding: 1.5rem 1rem 2.5rem;
  }
  .auth-shell .auth-card {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 16px;
  }
  .auth-shell .auth-title {
    font-size: 1.625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell .auth-cta,
  .auth-shell .left-side .footer a {
    transition: none;
  }
  .auth-shell .auth-cta:hover,
  .auth-shell .auth-cta:focus {
    transform: none;
  }
}
