/* Global Colors */
:root {
  --ink: #00384b;
  --primary-color: #1b8195;
  --primary-hover: #1b81950a;
  --secondary-color: #fff;
  --secondary-main: #722256;
  --text-secondary: rgba(0, 56, 75, 0.66);
  --text-error: #d23424;

  /* MDC theme overrides */
  --mdc-theme-primary: var(--primary-color);
  --mdc-theme-secondary: var(--secondary-main);
  --mdc-theme-on-primary: var(--secondary-color);
  --mdc-theme-on-secondary: var(--secondary-color);
  --mdc-theme-text-primary-on-background: var(--ink);
  --mdc-theme-text-secondary-on-background: var(--text-secondary);
  --mdc-text-field-focused-label-color: rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

html,
body {
  height: 100%;
  font-family: "Panton", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
}

main {
  display: flex;
  position: relative;
  background-color: #f5f5f5;
  overflow: visible;
  flex: 1;
}

footer {
  position: fixed;
  bottom: 0;
  right: 0;
  display: flex;
  font-size: 12px;
  gap: 24px;
  color: white;
  padding: 10px 16px;
  border-radius: 6px 0 0 0;
  background: rgba(0, 0, 0, 0.6);
  font-weight: bold;
  @media (max-width: 1023px) {
    position: unset;
    right: unset;
    width: 100%;
    background: #f5f5f5;
    justify-content: center;
    color: var(--text-secondary);
  }
}

footer a {
  color: inherit;
  text-decoration: none;
}

.LeftContent {
  width: clamp(
    428px,
    calc(428px + (598 - 428) * ((100vw - 1195px) / (1366 - 1195))),
    100%
  );
  max-width: 50%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 64px;
  @media (max-width: 1023px) {
    width: 100%;
    max-width: unset;
  }
  overflow: visible;
}

.LoginContent {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  height: 716px;
  gap: 24px;
  /* set z-index of children to 99 to prevent them from being hidden by the login art */
}

.login-form {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.RightFiller {
  flex: 1;
  /* max-width: 768px; */
}

.RightContent {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  height: 100vh;
  @media (max-width: 1195px) {
    right: calc((100vw - 1195px) * (-50 / (1023 - 1195)));
  }

  @media (max-width: 1074px) {
    margin-left: 0;
    min-width: 0;
  }

  @media (min-aspect-ratio: 1/1.2) and (max-aspect-ratio: 1/0.8) {
    /* Use vw for a responsive shift that's proportional to screen width */
    right: -13vw;
  }

  @media (max-width: 1023px) {
    display: none;
  }
}

.login-art {
  height: 100vh;
  object-fit: cover;

  @media (max-width: 1074px) {
    width: 100%;
  }
}

.RHLogo {
  padding-top: 36px;
  padding-bottom: 46px;
}

.StudentAdminChoice {
  display: flex;
  flex-direction: row;
  gap: 48px;

  a {
    color: var(--ink);
    text-decoration: none;
    opacity: 0.5;
  }

  a.active {
    text-decoration-color: #722256;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    text-decoration-line: underline;
    opacity: 1;
  }
}

.mdc-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bottom-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /*height: 290px;*/
  flex: 1;
  padding-bottom: 28px;
}

.error-grouping {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-error);
  font-size: 0.875rem;
  text-align: center;
}

.forgot-password-link {
  color: var(--primary-color);
  font-size: 0.875rem;
}

.mdc-text-field {
  width: 100%;
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 0 !important;
}

.form-actions {
  display: flex;
  align-items: center;
  height: 36px;
  justify-content: space-between;
}

.icon-button {
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  height: 48px;
  min-height: 48px;
  width: 48px;
  min-width: 48px;
  border-radius: 50%;
  position: relative;
  transform: translateX(-6px);

  > span {
    border-radius: 50% !important;
  }
}

.icon-button-icon {
  width: 32px;
  height: 32px;
  margin-right: 0;
}

.mdc-button--raised {
  background-color: var(--primary-color) !important;
}

#reader {
  height: 225px;
  width: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

  #reader video {
    transform: scaleX(-1);
    border-radius: 4px;
  }

#qr-swap {
  width: 40px;
  background-color: transparent;
  border: 0;
}

/* Overrides */
.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
  color: var(--mdc-text-field-focused-label-color) !important;
}

.mdc-text-field .mdc-text-field__input {
  caret-color: rgba(0, 0, 0, 0.6);
  padding: 0 max(16px, var(--mdc-shape-small, 4px));
}

.mdc-button__label,
a.mdc-button {
  text-transform: none;
  letter-spacing: normal;
}

.or-grouping {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-size: 0.875rem;
  width: 100%;
}

.horizontal-line {
  width: 41%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.12);
}

.sso-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 24px;
}

.sso-link {
  img {
    vertical-align: bottom;
  }
}

.login-help-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.login-help-section > a,
.form-actions > a {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.17px;
  color: var(--primary-color, #1b8195);
  font-feature-settings: "liga" off, "clig" off;
}

.login-projection-section {
  margin-top: 14px;
  width: 300px;
  display: inline-flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
  @media (max-width: 1023px) {
    align-items: flex-start;
  }
}

.regular {
  font-family: "Panton";
  font-weight: 400;
}

.semibold {
  font-family: "Panton";
  font-weight: 600;
}

.bold {
  font-family: "Panton";
  font-weight: 700;
}

.select-field {
  z-index: 100;
}

.multi-line-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mdc-select__selected-text {
  padding: 0 16px;
  height: 36px;
  border: none;
  background: none;
  width: 100%;
}

.mdc-select__selected-text:focus {
  outline: none;
}

/* Ensure the menu has a max height and scrolls */
.mdc-select__menu {
  max-height: 300px;
  overflow-y: auto;
}

.mdc-deprecated-list {
  max-height: 300px;
}

.mdc-deprecated-list-item--with-three-lines {
  height: auto;
  padding: 12px 16px;
}

.mdc-deprecated-list-item__primary-text {
  display: block;
  margin-bottom: unset;
  &::before {
    content: unset;
  }
  &::after {
    content: unset;
  }
}

.mdc-deprecated-list-item__secondary-text {
  display: block;
  line-height: 1.25;
  &::before {
    content: unset;
  }
}


.mdc-menu {
  position: fixed !important;
  min-width: 300px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
    0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.mdc-menu .mdc-deprecated-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
}

/* Ensure the menu is above everything */
.mdc-menu-surface--open {
  z-index: 1000 !important;
}

/* Style list items */
.mdc-deprecated-list-item {
  padding: 8px 16px !important;
  height: auto !important;
  cursor: pointer;
}

.mdc-deprecated-list-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

/* Ensure proper text visibility */
.mdc-deprecated-list-item__primary-text,
.mdc-deprecated-list-item__secondary-text {
  display: block !important;
  opacity: 1 !important;
}


.forgot-password-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.forgot-password-text {
  color: var(--ink, #00384b);
  font-feature-settings: "liga" off, "clig" off;

  /* typography/body2 */
  font-family: Panton;
  font-size: 14px;
  font-style: normal;
  font-weight: 310;
  line-height: 143%; /* 20.02px */
  letter-spacing: 0.17px;
}

.success-message {
  color: var(--ink, #00384b);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.email-sent-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.divider {
  width: 100%;
  max-width: 300px;
  height: 2px;
  background-color: var(--secondary-main);
}

.reset-message {
  font-size: 0.875rem;
  font-weight: bold;
}

.check-email-message {
  font-size: 0.875rem;
}

.no-email-message {
  margin-top: 2rem;
  font-size: 0.875rem;
  flex: 1;
  color: var(--ink);
  text-align: center;
  font-weight: bold;
  a {
    font-weight: normal;
    color: var(--primary-color);
    text-decoration: none;
  }
}

.dots:after {
  content: ".";
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: ".";
  }
  40% {
    content: "..";
  }
  60%,
  100% {
    content: "...";
  }
}

.search-spinner {
  color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  font-weight: bold;
  min-width: 40px;
  display: flex;
  align-items: flex-start;
  text-align: left;
  margin-right: 16px;
}

.lds-spinner,
.lds-spinner div,
.lds-spinner div:after {
  box-sizing: border-box;
}
.lds-spinner {
  color: currentColor;
  display: inline-block;
  position: relative;
  width: 24px;
  height: 24px;
}
.lds-spinner div {
  transform-origin: 12px 12px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 0.96px;
  left: 11.34px;
  width: 1.92px;
  height: 5.28px;
  border-radius: 20%;
  background: currentColor;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
