:root {
  --auth-navy: #071d32;
  --auth-navy-soft: #123b5d;
  --auth-teal: #24d3c5;
  --auth-teal-dark: #0b8e86;
  --auth-gold: #f1b84b;
  --auth-ink: #17324d;
  --auth-muted: #6b7f8e;
  --auth-line: #dbe6eb;
  --auth-canvas: #eef4f6;
  --auth-danger: #b54e5a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.cf-auth-page {
  margin: 0;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(36, 211, 197, 0.12), transparent 26rem),
    radial-gradient(circle at 92% 88%, rgba(241, 184, 75, 0.1), transparent 25rem), var(--auth-canvas);
  font:
    400 15px/1.6 "Segoe UI Variable",
    "Segoe UI",
    Arial,
    sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.cf-auth-page .auth-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.cf-auth-page .auth-shell {
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  overflow: hidden;
  border: 1px solid rgba(15, 43, 66, 0.08);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(12, 39, 61, 0.18);
}

.cf-auth-page .auth-brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 44px 42px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(36, 211, 197, 0.18), transparent 20rem),
    linear-gradient(145deg, #061a2e 0%, #0b2946 58%, #10435a 115%);
}

.cf-auth-page .auth-brand-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -150px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border: 82px solid rgba(36, 211, 197, 0.07);
  border-radius: 50%;
}

.cf-auth-page .auth-brand-top,
.cf-auth-page .auth-campusflow,
.cf-auth-page .auth-product-mark {
  display: flex;
  align-items: center;
}

.cf-auth-page .auth-brand-top {
  justify-content: space-between;
  gap: 18px;
}

.cf-auth-page .auth-campusflow {
  gap: 12px;
  color: #fff;
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.cf-auth-page .auth-campusflow strong {
  color: var(--auth-teal);
  font-weight: inherit;
}

.cf-auth-page .auth-product-mark {
  width: 25px;
  height: 25px;
  align-items: end;
  gap: 3px;
  transform: skew(-12deg);
}

.cf-auth-page .auth-product-mark i {
  display: block;
  width: 5px;
  border-radius: 2px;
  background: var(--auth-teal);
}

.cf-auth-page .auth-product-mark i:nth-child(1) {
  height: 10px;
}
.cf-auth-page .auth-product-mark i:nth-child(2) {
  height: 17px;
}
.cf-auth-page .auth-product-mark i:nth-child(3) {
  height: 24px;
  background: var(--auth-gold);
}

.cf-auth-page .auth-environment {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(235, 247, 249, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cf-auth-page .auth-brand-copy {
  max-width: 510px;
  padding: 62px 0 38px;
}

.cf-auth-page .auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--auth-teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cf-auth-page .auth-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: 0 0 28px;
  border-radius: 2px;
  background: var(--auth-gold);
}

.cf-auth-page .auth-brand-copy h1 {
  max-width: 500px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  font-weight: 790;
  line-height: 1.06;
  letter-spacing: -0.052em;
}

.cf-auth-page .auth-brand-copy > p {
  max-width: 470px;
  margin: 0;
  color: rgba(220, 235, 242, 0.72);
  font-size: 1rem;
}

.cf-auth-page .auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.cf-auth-page .auth-benefit {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.cf-auth-page .auth-benefit span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 8px;
  color: var(--auth-teal);
  background: rgba(36, 211, 197, 0.1);
  font-size: 0.72rem;
  font-weight: 850;
}

.cf-auth-page .auth-benefit b {
  display: block;
  color: rgba(238, 247, 250, 0.85);
  font-size: 0.7rem;
  font-weight: 680;
  line-height: 1.35;
}

.cf-auth-page .auth-tenant-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(10px);
}

.cf-auth-page .auth-tenant-copy small,
.cf-auth-page .auth-tenant-copy strong {
  display: block;
}

.cf-auth-page .auth-tenant-copy small {
  margin-bottom: 3px;
  color: #90aaba;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cf-auth-page .auth-tenant-copy strong {
  color: #fff;
  font-size: 0.84rem;
}

.cf-auth-page .auth-tenant-logos {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.cf-auth-page .auth-tenant-logo {
  display: block;
  width: auto;
  max-width: 235px;
  height: 70px;
  object-fit: contain;
  object-position: right center;
}

.cf-auth-page .auth-group-logo {
  max-width: 105px;
  max-height: 54px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.cf-auth-page .auth-form-panel {
  display: grid;
  place-items: center;
  padding: 52px 58px;
  background: #fff;
}

.cf-auth-page .auth-form-card {
  width: min(100%, 410px);
}

.cf-auth-page .auth-mobile-brand {
  display: none;
}

.cf-auth-page .auth-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--auth-teal-dark);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cf-auth-page .auth-form-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--auth-gold);
}

.cf-auth-page .auth-form-card h2 {
  margin: 0 0 9px;
  color: var(--auth-navy);
  font-size: 2.05rem;
  font-weight: 790;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.cf-auth-page .auth-form-intro {
  margin: 0 0 29px;
  color: var(--auth-muted);
  font-size: 0.88rem;
}

.cf-auth-page .auth-alert {
  display: flex;
  gap: 10px;
  margin-bottom: 19px;
  padding: 12px 14px;
  border: 1px solid #f0d5da;
  border-radius: 11px;
  color: #94414c;
  background: #fdf2f4;
  font-size: 0.76rem;
}

.cf-auth-page .auth-alert.auth-alert-info {
  border-color: #c7e7e3;
  color: #176b66;
  background: #effaf8;
}

.cf-auth-page .auth-alert a {
  color: inherit;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.cf-auth-page .auth-first-login {
  margin-top: 16px;
  min-height: 70px;
  padding: 14px 16px;
  border: 1px solid #c7e7e3;
  border-radius: 14px;
  background: linear-gradient(135deg, #effaf8, #f7fcfb);
  color: #0b5f5a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cf-auth-page .auth-first-login:hover {
  color: #084d49;
  border-color: #8fd2cc;
  box-shadow: 0 10px 24px rgba(9, 98, 91, 0.1);
  transform: translateY(-1px);
}

.cf-auth-page .auth-first-login span {
  display: grid;
  gap: 2px;
}

.cf-auth-page .auth-first-login small {
  color: #5e7a78;
  font-size: 0.72rem;
}

.cf-auth-page .auth-first-login b {
  font-size: 0.86rem;
}

.cf-auth-page .auth-field {
  margin-bottom: 18px;
}

.cf-auth-page .auth-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 7px;
}

.cf-auth-page .auth-field label {
  color: #405b6d;
  font-size: 0.72rem;
  font-weight: 740;
}

.cf-auth-page .auth-field-head a {
  color: var(--auth-teal-dark);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.cf-auth-page .auth-input-wrap {
  position: relative;
}

.cf-auth-page .auth-input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #8aa0ae;
  pointer-events: none;
}

.cf-auth-page .auth-input-wrap input {
  width: 100%;
  height: 51px;
  padding: 0 48px 0 43px;
  border: 1px solid #cfdee5;
  border-radius: 11px;
  outline: none;
  color: var(--auth-ink);
  background: #fbfcfd;
  font-size: 0.84rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.cf-auth-page .auth-input-wrap input::placeholder {
  color: #9babb5;
}

.cf-auth-page .auth-input-wrap input:focus {
  border-color: var(--auth-teal-dark);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 211, 197, 0.12);
}

.cf-auth-page .auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  min-width: 38px;
  height: 34px;
  padding: 0 8px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  color: #6f8593;
  background: transparent;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 750;
}

.cf-auth-page .auth-password-toggle:hover,
.cf-auth-page .auth-password-toggle:focus-visible {
  color: var(--auth-teal-dark);
  background: #edf8f7;
}

.cf-auth-page .auth-submit {
  width: 100%;
  min-height: 51px;
  margin-top: 4px;
  border: 1px solid var(--auth-teal);
  border-radius: 11px;
  color: var(--auth-navy);
  background: var(--auth-teal);
  box-shadow: 0 13px 28px rgba(36, 211, 197, 0.22);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 820;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.cf-auth-page .auth-submit:hover,
.cf-auth-page .auth-submit:focus-visible {
  background: #50ded3;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(36, 211, 197, 0.27);
}

.cf-auth-page .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 17px;
  color: #98a8b2;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cf-auth-page .auth-divider::before,
.cf-auth-page .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-line);
}

.cf-auth-page .auth-alternate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 15px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  color: var(--auth-ink);
  background: #f8fbfc;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.cf-auth-page .auth-alternate:hover,
.cf-auth-page .auth-alternate:focus-visible {
  border-color: #afd9d5;
  background: #f0faf9;
}

.cf-auth-page .auth-alternate span,
.cf-auth-page .auth-alternate b {
  display: block;
}

.cf-auth-page .auth-alternate span {
  color: var(--auth-muted);
  font-size: 0.65rem;
}

.cf-auth-page .auth-alternate b {
  margin-top: 2px;
  font-size: 0.76rem;
}

.cf-auth-page .auth-alternate > strong {
  color: var(--auth-teal-dark);
  font-size: 1rem;
}

.cf-auth-page .auth-notice {
  margin: 17px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #d4a035;
  border-radius: 0 8px 8px 0;
  color: #7b6a43;
  background: #fffaee;
  font-size: 0.67rem;
  line-height: 1.55;
}

.cf-auth-page .auth-support {
  margin: 25px 0 0;
  color: #92a2ac;
  font-size: 0.67rem;
  text-align: center;
}

.cf-auth-page .auth-support a {
  color: #607b8b;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .cf-auth-page .auth-stage {
    padding: 22px;
  }
  .cf-auth-page .auth-shell {
    grid-template-columns: 1fr;
    max-width: 690px;
  }
  .cf-auth-page .auth-brand-panel {
    min-height: 285px;
    padding: 30px 32px;
  }
  .cf-auth-page .auth-brand-panel::after {
    display: none;
  }
  .cf-auth-page .auth-brand-copy {
    padding: 38px 0 20px;
  }
  .cf-auth-page .auth-brand-copy h1 {
    max-width: 530px;
    font-size: 2.5rem;
  }
  .cf-auth-page .auth-brand-copy > p {
    max-width: 550px;
  }
  .cf-auth-page .auth-benefits {
    display: none;
  }
  .cf-auth-page .auth-tenant-lockup {
    min-height: 88px;
  }
  .cf-auth-page .auth-tenant-logo {
    height: 56px;
  }
  .cf-auth-page .auth-form-panel {
    padding: 46px 34px 50px;
  }
}

@media (max-width: 560px) {
  .cf-auth-page .auth-stage {
    display: block;
    padding: 0;
  }
  .cf-auth-page .auth-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .cf-auth-page .auth-brand-panel {
    min-height: auto;
    padding: 23px 22px 25px;
  }
  .cf-auth-page .auth-brand-top {
    align-items: flex-start;
  }
  .cf-auth-page .auth-environment {
    margin-top: 1px;
    font-size: 0.57rem;
  }
  .cf-auth-page .auth-brand-copy {
    padding: 31px 0 17px;
  }
  .cf-auth-page .auth-brand-copy h1 {
    max-width: 390px;
    margin-bottom: 12px;
    font-size: 2rem;
  }
  .cf-auth-page .auth-brand-copy > p {
    font-size: 0.82rem;
  }
  .cf-auth-page .auth-tenant-lockup {
    min-height: 76px;
    padding: 13px 15px;
    border-radius: 14px;
  }
  .cf-auth-page .auth-tenant-copy strong {
    font-size: 0.7rem;
  }
  .cf-auth-page .auth-tenant-logo {
    max-width: 155px;
    height: 46px;
  }
  .cf-auth-page .auth-group-logo {
    display: none;
  }
  .cf-auth-page .auth-form-panel {
    display: block;
    padding: 34px 23px 40px;
  }
  .cf-auth-page .auth-form-card {
    width: 100%;
  }
  .cf-auth-page .auth-form-card h2 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf-auth-page *,
  .cf-auth-page *::before,
  .cf-auth-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
