@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 100 900;
  src: url("../fonts/Mulish/Mulish-VariableFont_wght.652fc6d24cf5.ttf") format("truetype-variations");
  font-display: swap;
}

@font-face {
  font-family: "Mulish";
  font-style: italic;
  font-weight: 100 900;
  src: url("../fonts/Mulish/Mulish-Italic-VariableFont_wght.06feb0695b3b.ttf") format("truetype-variations");
  font-display: swap;
}

:root {
  --auth-primary: #435ebe;
  --auth-primary-dark: #344ba3;
  --auth-primary-soft: #eef2ff;
  --auth-text: #172033;
  --auth-muted: #667085;
  --auth-border: #dfe5ee;
  --auth-danger: #c2414b;
  --auth-danger-soft: #fff1f2;
  --auth-surface: #ffffff;
  --auth-background: #f4f7fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background: var(--auth-background);
  color: var(--auth-text);
  font-family: "Mulish", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.auth-layout {
  width: min(1060px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(340px, 40%) minmax(480px, 60%);
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(31, 45, 71, 0.12);
}

.auth-showcase {
  position: relative;
  display: flex;
  min-height: 600px;
  overflow: hidden;
  padding: 24px clamp(24px, 3vw, 32px);
  color: #ffffff;
  background: linear-gradient(145deg, #243b8f 0%, #435ebe 52%, #596fd0 100%);
}

.auth-showcase::before,
.auth-showcase::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-showcase::before {
  width: 360px;
  height: 360px;
  top: -160px;
  right: -140px;
}

.auth-showcase::after {
  width: 260px;
  height: 260px;
  bottom: -110px;
  left: -100px;
}

.auth-showcase-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
}

.auth-brand,
.auth-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.auth-brand:hover,
.auth-mobile-brand:hover {
  color: inherit;
  text-decoration: none;
}

.auth-brand-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.auth-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.auth-showcase-copy {
  margin: auto 0;
  padding: 44px 0;
}

.auth-showcase-eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-showcase-title {
  max-width: 500px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.auth-showcase-description {
  max-width: 470px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  gap: 13px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.auth-benefit-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
}

.auth-showcase-footer {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.auth-main {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(36px, 5vw, 66px);
  background: #ffffff;
}

.auth-main-inner {
  width: min(100%, 500px);
}

.auth-mobile-brand {
  display: none;
  width: fit-content;
  margin-bottom: 30px;
  color: var(--auth-text);
}

.auth-mobile-brand .auth-brand-mark {
  color: var(--auth-primary);
  background: var(--auth-primary-soft);
  box-shadow: none;
}

.auth-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--auth-surface);
  box-shadow: none;
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-card-eyebrow {
  margin: 0 0 7px;
  color: var(--auth-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card-title {
  margin: 0;
  color: var(--auth-text);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.auth-card-description {
  margin: 10px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-form-group {
  margin-bottom: 19px;
}

.auth-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}

.auth-label {
  margin: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.auth-link {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--auth-primary-dark);
  text-decoration: underline;
}

.auth-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  outline: none;
  color: var(--auth-text);
  background: #ffffff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
  color: #98a2b3;
}

.auth-input:hover {
  border-color: #c4ccd8;
}

.auth-input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(67, 94, 190, 0.12);
}

.auth-input.is-invalid {
  border-color: var(--auth-danger);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .auth-input {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  color: #667085;
  background: transparent;
  cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
  color: var(--auth-primary);
  background: var(--auth-primary-soft);
  outline: none;
}

.auth-field-help {
  margin: 7px 0 0;
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-error-list {
  margin: 7px 0 0;
  padding: 0;
  color: var(--auth-danger);
  font-size: 12px;
  list-style: none;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #ffd2d7;
  border-radius: 11px;
  color: #9f2530;
  background: var(--auth-danger-soft);
  font-size: 13px;
}

.auth-alert-success {
  border-color: #bde7d3;
  color: #116c49;
  background: #ecf9f3;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #475467;
  font-size: 13px;
  cursor: pointer;
}

.auth-checkbox input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--auth-primary);
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 5px;
  padding: 12px 18px;
  border: 0;
  border-radius: 11px;
  color: #ffffff;
  background: var(--auth-primary);
  box-shadow: 0 8px 18px rgba(67, 94, 190, 0.2);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus {
  color: #ffffff;
  background: var(--auth-primary-dark);
  box-shadow: 0 10px 24px rgba(67, 94, 190, 0.28);
  outline: none;
  transform: translateY(-1px);
  text-decoration: none;
}

.auth-sso-submit {
  margin: 0 0 18px;
  text-decoration: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--auth-border);
}

.auth-secondary-action {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  color: #344054;
  background: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.auth-secondary-action:hover {
  border-color: #bfc8d6;
  color: var(--auth-primary);
  background: #fafbff;
  text-decoration: none;
}

.auth-action-stack {
  display: grid;
  gap: 11px;
}

.auth-card-footer {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--auth-border);
  color: var(--auth-muted);
  text-align: center;
  font-size: 13px;
}

.auth-message-list {
  margin-bottom: 18px;
}

.auth-page-footer {
  margin-top: 22px;
  color: #98a2b3;
  text-align: center;
  font-size: 12px;
}

.auth-status-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 18px;
  color: var(--auth-primary);
  background: var(--auth-primary-soft);
  font-size: 24px;
}

.auth-status-icon.is-success {
  color: #138a5b;
  background: #eaf8f1;
}

.auth-status-icon.is-warning {
  color: #b8690a;
  background: #fff6e8;
}

@media (max-width: 980px) {
  body.auth-body {
    display: block;
    padding: 0;
  }

  .auth-layout {
    display: block;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    background: var(--auth-background);
    box-shadow: none;
  }

  .auth-showcase {
    display: none;
  }

  .auth-main {
    min-height: 100vh;
    background: var(--auth-background);
  }

  .auth-mobile-brand {
    display: inline-flex;
  }

  .auth-card {
    padding: clamp(28px, 5vw, 40px);
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(31, 45, 71, 0.09);
  }
}

@media (max-width: 575.98px) {
  .auth-main {
    align-items: flex-start;
    padding: 24px 16px 34px;
  }

  .auth-main-inner {
    width: 100%;
  }

  .auth-card {
    padding: 25px 20px;
    border-radius: 16px;
  }

  .auth-card-title {
    font-size: 24px;
  }

  .auth-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
