/* CCY Academy dark authentication experience. */
#page-login.auth-page,
#page-register.auth-page {
  --auth-bg: #050506;
  --auth-surface: #0b0c0e;
  --auth-surface-2: #111216;
  --auth-text: #f4f2ec;
  --auth-muted: #969ba3;
  --auth-line: rgba(255, 255, 255, .12);
  --auth-line-strong: rgba(255, 255, 255, .22);
  --auth-gold: #BBA14F;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--auth-text);
  background: var(--auth-bg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

.auth-page .auth-wrap {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 8%, rgba(187, 161, 79, .11), transparent 28%),
    radial-gradient(circle at 92% 92%, rgba(79, 199, 189, .07), transparent 25%),
    var(--auth-bg);
}

.auth-page .auth-wrap::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .13;
  background-image:
    linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}

.auth-page .auth-shell {
  width: min(100%, 1360px);
  min-height: min(900px, calc(100svh - 48px));
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: var(--auth-surface);
  box-shadow: 0 38px 110px rgba(0, 0, 0, .58);
  animation: auth-shell-in .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes auth-shell-in {
  from { opacity: 0; transform: translateY(18px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-page .auth-visual {
  min-height: 680px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--auth-line);
  background: #090a0b;
}

.auth-page .auth-visual-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(.78) saturate(.78);
  transform: scale(1.015);
  animation: auth-image-in 1.2s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-page-register .auth-visual-image {
  object-position: 58% center;
}

@keyframes auth-image-in {
  from { opacity: .4; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.015); }
}

.auth-page .auth-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 4, 5, .12) 0%, rgba(4, 4, 5, .1) 35%, rgba(4, 4, 5, .92) 100%),
    linear-gradient(90deg, rgba(4, 4, 5, .26), transparent 55%);
  pointer-events: none;
}

.auth-page .auth-home {
  width: 320px;
  position: absolute;
  top: 32px;
  left: 34px;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-page .auth-home img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.auth-page .auth-visual-copy {
  max-width: 650px;
  position: absolute;
  right: 46px;
  bottom: 46px;
  left: 46px;
  z-index: 2;
  animation: auth-copy-in .85s .15s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes auth-copy-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-page .auth-eyebrow,
.auth-page .auth-form-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-page .auth-eyebrow::before,
.auth-page .auth-form-heading > span::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

.auth-page .auth-visual-copy h1 {
  max-width: 620px;
  margin: 20px 0 18px;
  color: var(--auth-text);
  font-size: clamp(58px, 5.7vw, 96px);
  font-weight: 600;
  line-height: .88;
  letter-spacing: 0;
}

.auth-page .auth-visual-copy h1 em {
  color: var(--auth-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.auth-page .auth-visual-copy > p {
  max-width: 550px;
  margin: 0;
  color: #c0c3c8;
  font-size: 15px;
  line-height: 1.7;
}

.auth-page .auth-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.auth-page .auth-proof span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #d4d6d9;
  background: rgba(5, 5, 6, .34);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-page .auth-form-panel {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px clamp(42px, 5vw, 82px) 54px;
  background:
    radial-gradient(circle at 100% 0%, rgba(187, 161, 79, .08), transparent 24%),
    var(--auth-surface);
}

.auth-page .auth-form-panel::before {
  width: 320px;
  height: 320px;
  position: absolute;
  right: -170px;
  bottom: -170px;
  content: "";
  border: 1px solid rgba(187, 161, 79, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(187, 161, 79, .025),
    0 0 0 76px rgba(187, 161, 79, .018);
  pointer-events: none;
}

.auth-page .auth-back {
  min-height: 42px;
  position: absolute;
  top: 26px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--auth-line);
  border-radius: 999px;
  color: #b9bdc2;
  background: rgba(255, 255, 255, .025);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s, border-color .3s, background .3s;
}

.auth-page .auth-back svg {
  width: 17px;
  height: 17px;
}

.auth-page .auth-back:hover,
.auth-page .auth-back:focus-visible {
  color: var(--auth-gold);
  border-color: rgba(187, 161, 79, .42);
  background: rgba(187, 161, 79, .08);
}

.auth-page .login-card.auth-card {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--auth-text);
  background: transparent;
  box-shadow: none;
}

.auth-page .login-logo {
  display: none;
}

.auth-page .auth-form-heading {
  margin-bottom: 10px;
}

.auth-page .auth-form-heading h2 {
  margin: 18px 0 0;
  color: var(--auth-text);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: 0;
}

.auth-page .login-sub {
  margin: 0 0 34px;
  color: var(--auth-muted);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

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

.auth-page .form-label {
  display: block;
  margin-bottom: 8px;
  color: #c8cacf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.auth-page .form-label a {
  color: var(--auth-muted) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .03em !important;
  text-transform: none;
}

.auth-page .form-label a:hover {
  color: var(--auth-gold) !important;
}

.auth-page .form-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--auth-line);
  border-radius: 6px;
  outline: 0;
  color: var(--auth-text);
  background: rgba(255, 255, 255, .025);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  transition: border-color .3s, background .3s, box-shadow .3s;
}

.auth-page .form-input::placeholder {
  color: #666b72;
}

.auth-page .form-input:hover {
  border-color: var(--auth-line-strong);
}

.auth-page .form-input:focus {
  border-color: var(--auth-gold);
  background: rgba(187, 161, 79, .035);
  box-shadow: 0 0 0 3px rgba(187, 161, 79, .1);
}

.auth-page .pwd-eye-btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  padding: 0 16px;
  border: 0;
  color: var(--auth-muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.auth-page .pwd-eye-btn:hover {
  color: var(--auth-gold);
}

.auth-page .btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--auth-line);
  border-radius: 999px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s, border-color .3s, background .3s, transform .3s;
}

.auth-page .btn-full {
  width: 100%;
}

.auth-page .btn-primary {
  color: #101113;
  border-color: var(--auth-gold);
  background: var(--auth-gold);
}

.auth-page .btn-primary:hover,
.auth-page .btn-primary:focus-visible {
  color: var(--auth-text);
  border-color: var(--auth-text);
  background: transparent;
  transform: translateY(-2px);
}

.auth-page .btn-outline,
.auth-page .btn-ghost {
  color: #d5d7da;
  border-color: var(--auth-line-strong);
  background: transparent;
}

.auth-page .btn-outline:hover,
.auth-page .btn-outline:focus-visible,
.auth-page .btn-ghost:hover,
.auth-page .btn-ghost:focus-visible {
  color: var(--auth-gold);
  border-color: rgba(187, 161, 79, .5);
  background: rgba(187, 161, 79, .06);
}

.auth-page .login-divider {
  margin: 18px 0;
  color: #777c84;
  text-align: center;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-page .login-divider::before,
.auth-page .login-divider::after {
  width: 39%;
  background: var(--auth-line);
}

.auth-page .alert {
  padding: 11px 13px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5;
}

.auth-page .alert-error {
  color: #ff9f9f;
  border-color: rgba(255, 91, 91, .28);
  background: rgba(255, 91, 91, .08);
}

.auth-page .alert-success {
  color: #8ce5b7;
  border-color: rgba(62, 207, 142, .26);
  background: rgba(62, 207, 142, .08);
}

.auth-page #forgot-pw-form {
  border-top-color: var(--auth-line) !important;
}

.auth-page #forgot-pw-form p {
  color: var(--auth-muted) !important;
}

.auth-page #cf-login,
.auth-page #cf-register {
  min-height: 65px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .auth-page .auth-wrap {
    padding: 16px;
    overflow: visible;
  }

  .auth-page .auth-shell {
    min-height: calc(100svh - 32px);
    grid-template-columns: 1fr;
  }

  .auth-page .auth-visual {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--auth-line);
  }

  .auth-page .auth-visual-image,
  .auth-page-register .auth-visual-image {
    object-position: center 47%;
  }

  .auth-page .auth-home {
    width: 270px;
    top: 22px;
    left: 24px;
  }

  .auth-page .auth-visual-copy {
    right: 26px;
    bottom: 24px;
    left: 26px;
  }

  .auth-page .auth-visual-copy h1 {
    max-width: 560px;
    margin: 12px 0 0;
    font-size: 50px;
  }

  .auth-page .auth-visual-copy > p,
  .auth-page .auth-proof {
    display: none;
  }

  .auth-page .auth-form-panel {
    padding: 74px 34px 50px;
  }
}

@media (max-width: 600px) {
  .auth-page .auth-wrap {
    display: block;
    padding: 0;
  }

  .auth-page .auth-shell {
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-page .auth-visual {
    min-height: 220px;
  }

  .auth-page .auth-home {
    width: 238px;
    top: 18px;
    left: 18px;
  }

  .auth-page .auth-visual-copy {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .auth-page .auth-eyebrow {
    font-size: 8px;
  }

  .auth-page .auth-visual-copy h1 {
    max-width: 350px;
    margin-top: 10px;
    font-size: 38px;
  }

  .auth-page .auth-form-panel {
    display: block;
    padding: 72px 20px 44px;
  }

  .auth-page .auth-back {
    top: 18px;
    right: 20px;
  }

  .auth-page .auth-form-heading h2 {
    font-size: 42px;
  }

  .auth-page .login-sub {
    margin-bottom: 28px;
  }

  .auth-page .form-input {
    min-height: 52px;
  }
}

@media (max-height: 780px) and (min-width: 981px) {
  .auth-page .auth-wrap {
    place-items: start center;
  }

  .auth-page .auth-shell {
    min-height: 760px;
  }

  .auth-page .auth-form-panel {
    padding-top: 66px;
  }

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

  .auth-page .login-sub {
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page .auth-shell,
  .auth-page .auth-visual-image,
  .auth-page .auth-visual-copy {
    animation: none;
  }
}
