:root {
  --primaryfont: 'Inter', sans-serif;
  --headingfont: 'Libre Caslon Text', serif;
  --elevation-shadow-raised:
    0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14);
}

/* Components */
@import url('styles/reset.css');
@import url('styles/container.css');
@import url('styles/header.css');
@import url('styles/button.css');

/* Login Page Styles */
.login-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .login-wrapper {
    background: #fff;
    height: auto;
  }
}

.video-background {
  position: relative; /* so the button can sit on top */
}

/* play/pause button styling */
.login-video-toggle {
  position: absolute;
  right: 58px;
  bottom: 70px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.login-video-toggle:hover {
  background: transparent;
}

.login-video-toggle:focus {
  background: transparent;
}

/* icon swap logic */
.login-video-toggle .icon-play {
  display: none;
}
.login-video-toggle[data-state='paused'] .icon-play {
  display: block;
}
.login-video-toggle[data-state='paused'] .icon-pause {
  display: none;
}

.login-video-toggle:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* screen-reader helper (if not already defined globally) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.close-btn {
  position: absolute;
  right: 58px;
  top: 70px;
  width: 48px;
  height: 48px;
  z-index: 10;
  display: inline-flex;
  padding: var(--padding-vertical-edge-to-element-150, 12px)
    var(--padding-horizontal-edge-to-element-150, 12px);
  justify-content: center;
  align-items: center;
  border-radius: 1000px var(--border-radius-full, 1000px) 1000px 1000px;
  border: var(--border-width-thin, 1px) solid rgba(11, 18, 40, 0.14);
  background: #f2f3f4;
  box-shadow: 3px 4px 4px 0 rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
  .close-btn {
    top: 24px;
    right: 24px;
  }
}

.login-box {
  gap: var(--spacing-xl);
  max-width: 592px;
  min-width: 592px;
  max-height: 649px;
  width: 100%;
  height: 100vh;
  padding: 0 82px 42px 82px;
  display: grid;
  justify-content: center;
  border-radius: var(--radius-card);
  background: linear-gradient(
    17deg,
    rgba(236, 236, 233, 0.3) -48.45%,
    #fff 42.82%
  );
  backdrop-filter: blur(calc(var(--spacing-md) / 2));
}

.login-box header {
  position: relative;
}

.login-box header a {
  position: absolute;
  right: 24px;
  top: 24px;
}

.login-box header a img {
  display: block;
}

.login-box header a:hover {
  transform: scale(1.2);
}

@media screen and (max-width: 768px) {
  .login-box {
    gap: var(--spacing-xl);
    max-width: 100%;
    min-width: 100%;
    max-height: 100%;
    overflow: hidden;
    width: 100%;
    height: auto;
    padding: 48px 19px;
    /* display: grid; */
    opacity: 1;
    justify-content: center;
    background: linear-gradient(
      17deg,
      rgba(236, 236, 233, 0.3) -48.45%,
      #fff 10%
    );
    border-radius: 0px;
    /* background: linear-gradient(17deg, rgba(236, 236, 233, 0.3) -48.45%, #fff 42.82%); */
    backdrop-filter: none;
  }

  .login-video-toggle {
    display: none !important;
  }
}

.login-box header {
  padding: 32px var(--spacing-xl6);
  position: relative;
  display: flex;
}

@media screen and (max-width: 768px) {
  .login-box header {
    padding: 0px;
  }
}

.login-box header h1 {
  color: var(--color-text-black);
  font: var(--font-display-xs);
  justify-content: center;
  letter-spacing: -0.5px;
  align-items: center;
  text-align: center;
  height: 80px;
  width: 100%;
  margin: 0;
  flex: 1;
}

@media screen and (max-width: 768px) {
  .login-box header h1 {
    font-size: 32px;
    margin-bottom: 32px;
  }
}

.login-box header:after {
  background-color: rgba(9, 30, 66, 0.14);
  width: calc(100% - 32px);
  left: var(--spacing-md);
  position: absolute;
  content: '';
  height: 1px;
  bottom: 0;
}

.login-box footer:after {
  bottom: auto;
  top: 0;
}

.login-box footer {
  padding: 0px var(--spacing-lg);
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  position: relative;
  display: flex;
  width: 592px;
}

@media screen and (max-width: 768px) {
  .login-box footer {
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    position: relative;
    display: grid;
    margin: 0 auto;
    grid-auto-flow: row;
    width: 100%;
  }
  .login-box footer > *:first-child {
    order: 2;
  }
  .login-box footer > *:last-child {
    order: 1;
  }
}

.login-box footer .buttons {
  gap: var(--spacing-md);
  align-items: center;
  display: flex;
}

@media screen and (max-width: 768px) {
  .login-box footer .buttons {
    display: grid;
    gap: var(--spacing-md);
    align-items: center;
    align-self: stretch;
    width: 285px;
    grid-auto-flow: row;
  }
}

.login-content {
  padding: 0px var(--spacing-xl6);
  flex-direction: column;
  gap: var(--spacing-xl);
  display: flex;
}

@media screen and (max-width: 768px) {
  .login-content {
    padding: 0px !important;
  }
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0; /* was -1, now neutral */
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1; /* video sits behind everything else */
}

.video-overlay {
  position: relative;
  text-align: center;
  z-index: 1;
}

.video-overlay h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.login-box .signup-info {
  font: var(--font-paragraph-medium);
  color: var(--color-text-subtle);
  justify-content: center;
  gap: var(--spacing-xs3);
  letter-spacing: 0.5px;
  align-items: center;
  display: flex;
}

@media screen and (max-width: 768px) {
  .login-box .signup-info {
    display: flex;
    padding: 47px 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--gap-075, 6px);
    align-self: stretch;
  }
}

.login-box .signup-info p {
  margin: 0;
}

.login-box .signup-info a {
  color: var(--color-text-default);
  font-weight: 600;
}

.login-box .signup-info a:hover {
  color: var(--color-text-subtle);
}

.login-box .guest-content {
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
  display: flex;
}

.login-box .guest-content p {
  font: var(--font-paragraph-small);
  color: var(--color-text-subtle);
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
}

.login-box .guest-content input {
  border-radius: var(--radius-md);
  border: 1px solid #e4e5e7;
  font: var(--font-body-body);
  background: #fff;
  max-width: 288px;
  height: 64px;
}

.login-box input::placeholder {
  color: var(--color-input-placeholder);
  font: var(--font-body-body);
  text-overflow: ellipsis;
  letter-spacing: 0.16px;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .login-box input {
    width: 100%;
    max-width: none;
  }
}

.header-image.is-logo-image {
  margin: 32px;
  margin-bottom: -32px;
}

@media screen and (max-width: 768px) {
  .header-image.is-logo-image {
    position: relative;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: auto;
  }
}
