/* =========================================================
   LOGIN
========================================================= */

.login-page {
  min-height: 620px;

  display: grid;
  place-items: center;

  padding:
    55px 20px 75px;
}


.login-shell {
  width: min(860px, 100%);

  display: grid;

  grid-template-columns:
    minmax(0, .9fr)
    minmax(360px, 1fr);

  overflow: hidden;

  background:
    var(--paper);

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-lg);

  box-shadow:
    var(--shadow-lg);
}


/* =========================================================
   BRAND SIDE
========================================================= */

.login-brand {
  position: relative;

  overflow: hidden;

  min-height: 460px;

  display: flex;
  flex-direction: column;

  justify-content: center;

  align-items: flex-start;

  padding:
    48px 42px;

  color:
    #f6f1e8;

  background:
    radial-gradient(
      circle at 20% 15%,
      rgba(202, 164, 91, .16),
      transparent 16rem
    ),
    linear-gradient(
      145deg,
      var(--nav-bg),
      var(--nav-bg-secondary)
    );

  border-right:
    1px solid
    rgba(205, 168, 98, .22);
}


.login-brand::before {
  content: "";

  position: absolute;

  inset: 13px;

  pointer-events: none;

  border:
    1px solid
    rgba(216, 181, 111, .15);

  border-radius:
    calc(var(--radius-lg) - 7px);
}


.login-brand::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  right: -95px;
  bottom: -100px;

  border:
    1px solid
    rgba(211, 175, 105, .13);

  border-radius: 50%;

  box-shadow:
    0 0 0 25px
    rgba(211, 175, 105, .025),
    0 0 0 50px
    rgba(211, 175, 105, .02);
}


.login-seal {
  position: relative;
  z-index: 2;

  width: 58px;
  height: 68px;

  margin-bottom: 25px;

  display: grid;
  place-items: center;

  color:
    var(--gold-300);

  border:
    1px solid
    var(--gold-400);

  border-radius:
    9px 9px 17px 9px;

  box-shadow:
    inset 0 0 0 4px
    rgba(203, 164, 90, .05);

  font-family:
    var(--font-display);

  font-size: 22px;

  font-weight: 700;
}


.login-brand .archive-label {
  position: relative;
  z-index: 2;

  color:
    var(--gold-300);
}


.login-brand h1 {
  position: relative;
  z-index: 2;

  margin:
    4px 0 0;

  max-width: 310px;

  color:
    #fffaf0;

  font-family:
    var(--font-display);

  font-size:
    clamp(2.8rem, 5vw, 4rem);

  font-weight: 600;

  line-height: .95;

  letter-spacing:
    -.03em;
}


.login-brand p {
  position: relative;
  z-index: 2;

  max-width: 310px;

  margin:
    18px 0 0;

  color:
    rgba(239, 235, 224, .62);

  font-size: 12px;

  line-height: 1.75;
}


/* =========================================================
   FORM SIDE
========================================================= */

.login-panel {
  padding:
    48px 42px;

  display: flex;
  flex-direction: column;

  justify-content: center;

  background:
    var(--paper);
}


.login-panel-header {
  margin-bottom: 27px;
}


.login-panel-kicker {
  display: block;

  margin-bottom: 5px;

  color:
    var(--accent-text);

  font-size: 9px;

  font-weight: 800;

  letter-spacing:
    .14em;

  text-transform: uppercase;
}


.login-panel-header h2 {
  margin: 0;

  color:
    var(--text);

  font-family:
    var(--font-display);

  font-size: 34px;

  font-weight: 600;

  line-height: 1;
}


.login-panel-header p {
  margin:
    8px 0 0;

  color:
    var(--text-muted);

  font-size: 12px;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
  display: grid;
  gap: 20px;
}


.login-field {
  display: grid;
  gap: 7px;
}


.login-field label {
  color:
    var(--text-secondary);

  font-size: 10px;

  font-weight: 800;

  letter-spacing:
    .05em;

  text-transform: uppercase;
}


.login-field-heading {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}


.login-field-heading a {
  color:
    var(--primary);

  font-size: 10px;

  font-weight: 700;
}


.login-field-heading a:hover {
  text-decoration: underline;
}


/*
  Slightly taller login inputs than normal
  app controls.
*/

.login-form .scq-input {
  min-height: 48px;

  padding-inline: 14px;

  font-size: 14px;

  background:
    var(--surface-raised);
}


.login-form .scq-input::placeholder {
  color:
    var(--text-faint);
}


.login-button {
  width: 100%;

  min-height: 49px;

  margin-top: 4px;

  justify-content: space-between;

  padding-inline: 18px;
}


.login-button span {
  font-size: 17px;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.login-security {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 27px;

  padding-top: 18px;

  color:
    var(--text-muted);

  border-top:
    1px solid
    var(--border-soft);

  font-size: 9px;

  line-height: 1.5;
}


.login-security-mark {
  color:
    var(--accent);

  font-size: 8px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

  .login-page {
    min-height: auto;

    padding:
      30px 0 50px;
  }


  .login-shell {
    grid-template-columns: 1fr;
  }


  .login-brand {
    min-height: auto;

    padding:
      34px 28px;
  }


  .login-brand h1 {
    font-size: 2.7rem;
  }


  .login-seal {
    width: 48px;
    height: 56px;

    margin-bottom: 18px;
  }


  .login-panel {
    padding:
      35px 28px;
  }

}


@media (max-width: 420px) {

  .login-brand,
  .login-panel {
    padding-left: 21px;
    padding-right: 21px;
  }

}

.login-security a {
  color: var(--primary);
  font-weight: 700;
}

.login-security a:hover {
  text-decoration: underline;
}
