/* ITIS 314 auth chrome.
   Colors come from Bootstrap/CTFd variables so light and dark stay native.
   Lato (CTFd default) is left alone — do not force another family. */

.ctf_logo,
img.ctf_logo {
  height: 30px;
  width: auto;
  border-radius: 6px;
}

.navbar-brand .ctf_wordmark {
  margin-left: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  vertical-align: middle;
}

/* main already has padding-top: 3.5rem for the fixed navbar.
   Keep this compact so the board sits under the nav, not in a jumbotron. */
.itis-auth {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1.25rem 2.75rem;
}

.itis-auth__panel {
  width: 100%;
  max-width: 24.5rem;
}

.itis-auth__head {
  text-align: center;
  margin-bottom: 1.15rem;
}

.itis-auth__mark {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 0.8rem;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--bs-border-color);
}

.itis-auth__title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.3rem;
}

.itis-auth__sub {
  font-size: 0.92rem;
  line-height: 1.35;
  margin: 0;
}

.itis-auth__card {
  padding: 1.65rem 1.5rem 1.35rem;
  border-radius: 0.9rem;
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-body-bg);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(var(--bs-body-color-rgb), 0.16) 0 6px,
    transparent 6px 12px
  );
  background-size: 100% 7px;
  background-repeat: no-repeat;
  background-position: top;
  box-shadow: 0 1px 2px rgba(var(--bs-body-color-rgb), 0.05);
}

html[data-bs-theme="dark"] .itis-auth__card {
  background-color: var(--bs-tertiary-bg);
  box-shadow: none;
}

.itis-auth__action {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.35rem 0 1.1rem;
}

.itis-auth__form {
  display: block;
}

.itis-auth__field {
  margin-bottom: 1rem;
}

.itis-auth__field:last-of-type {
  margin-bottom: 0;
}

.itis-auth__field .form-label {
  margin-bottom: 0.35rem;
}

.itis-auth__field .form-control {
  padding: 0.62rem 0.8rem;
}

.itis-auth__field .form-text {
  margin-top: 0.3rem;
}

.itis-auth__actions {
  margin-top: 1.25rem;
}

.itis-auth__submit {
  padding-top: 0.58rem;
  padding-bottom: 0.58rem;
}

.itis-auth__forgot {
  text-align: center;
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
}

.itis-auth__forgot a {
  text-decoration: none;
}

.itis-auth__forgot a:hover,
.itis-auth__forgot a:focus-visible {
  text-decoration: underline;
}

.itis-auth__legal {
  text-align: center;
  margin: 0.9rem 0 0;
}

.itis-auth__alt {
  text-align: center;
  font-size: 0.92rem;
  margin: 1.1rem 0 0;
}

.itis-auth__alt a {
  font-weight: 600;
  text-decoration: none;
}

.itis-auth__alt a:hover,
.itis-auth__alt a:focus-visible {
  text-decoration: underline;
}
