:root {
  --gray: #787878;
  --green: #737b4c;
  --green_active: #565c39;
  --header-height: 125px;
}

@keyframes FADE {
  0% { opacity: 0; } 
  100% { opacity: 1; } 
}

@font-face {
  font-family: PromptLight;
  src: local('Prompt-Light'), local('Prompt Light'), url("/wp-content/themes/pint/assets/font/prompt-light.woff2") format("woff2");
  font-display: fallback;
  font-style: normal;
  font-weight: 300;
}
@font-face {
  font-family: PromptRegular;
  src: local('Prompt-Regular'), local('Prompt Regular'), url("/wp-content/themes/pint/assets/font/prompt-regular.woff2") format("woff2");
  font-display: fallback;
  font-weight: 400;
}

html, body {
  box-sizing: border-box;
}
body.login {
  background-color: black;
  background-image: url('/images/layout/glaukos-swirl.webp');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  color: white;
  font-family: PromptLight, sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  padding-top: var(--header-height);
}
.login #login_error, 
.login .message, 
.login .success {
  background-color: var(--gray);
  margin: 0 auto 2rem;
  max-width: 500px;
}

content-width {
  display: block;
  margin: 0 1.5rem;
  max-width: 1390px;
  width: 100%;
}

/* HEADER */
header {
  animation: FADE .5s forwards;
  display: flex;
  inset: 0 0 auto 0;
  opacity: 0;
  place-content: center;
  position: absolute;
  width: 100vw;
}
header content-width {
  display: flex;
  place-content: center;
  place-items: center;
  height: var(--header-height);
}
header a {
  color: white;
  font-size: .9375rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .3s;
}
header a:hover {
  color: var(--green);
}


/* CONTENT */
#login {
  box-sizing: border-box;
  margin: 0 1.5rem;
  width: auto;
  max-width: 965px;
}
.login h1 {
  margin-block-end: 2.375rem;
}
.login h1 a {
  background: unset;
  color: white !important;
  height: unset;
  font-size: 25px;
  line-height: 35px;
  margin: 0;
  pointer-events: none;
  width: auto;
  text-indent: unset;
}

/* SHARED FORMS */
.login form {
  animation: FADE .5s forwards;
  background: unset;
  border: 0;
  color: var(--gray) !important;
  margin: 0 auto;
  max-width: 320px;
  opacity: 0;
  padding: 0;
}
.login form .input, 
.login form input[type=checkbox], 
.login input[type=text] {
  background: rgba(44,44,44,.6);
  color: #a4a1a1;
}

/* LOGIN FORM */
/* Immediately hide elements we'll re-introduce to the DOM */
#loginform > p:first-child,
#loginform > .user-pass-wrap,
#loginform > .forgetmenot,
#loginform > p.submit,
#loginform h4,
#loginform br {
  display: none;
}
/* Style what's left */

/* Okta Button */
#loginform > .row {
  display: flex;
  min-height: 1.875rem;
  place-content: center;
  place-items: center;
}
#loginform > .row > a > div {
  background: var(--green);
  border-radius: 1.25rem;
  color: white;
  display: flex;
  gap: 12px;
  font-size: .9375rem;
  letter-spacing: 1px;
  line-height: 1.4;
  min-height: 1.875rem;
  padding: 5px 1.25rem;
  place-items: center;
  transition: background-color .3s;
}
#loginform > .row > a:hover > div {
  background: var(--green_active);
}
#loginform .mo_oauth_login_button, 
#loginform .mo_oauth_login_button_widget {
  background: unset;
  box-shadow: unset;
  width: unset;
}
#loginform .mo_oauth_login_button {
  border: unset;
  border-radius: unset;
  height: unset;
}
#loginform .mo_oauth_login_button_text {
  color: unset;
  display: unset;
  font-weight: unset;
}
#loginform .mo_oauth_login_button_icon {
  border: unset;
  color: unset;
  display: unset;
  font-size: unset;
  height: unset;
  margin: unset;
  padding: unset;
  transform: translateY(1px);
}

/* Admin Login Form Toggle */
details.login-toggle {
  animation: FADE .5s forwards;
  margin-block-start: 3.5rem;
  min-height: 1.25rem;
  opacity: 0;
  user-select: none;
}
.login-toggle > summary {
  cursor: pointer;
  font-size: 14px;
  list-style: none;
  min-height: 1.25rem;
  padding-block: .5rem 1.5rem;
  text-align: center;
}
.login-toggle > summary::-webkit-details-marker {
  display: none;
}
login-controls {
  display: flex;
  margin-block-end: 1rem;
  place-content: space-between;
  place-items: center;
}
.login #backtoblog, 
.login #nav {
  margin: 0 auto;
  max-width: 320px;
  padding: 0;
}
.login #backtoblog a, 
.login #nav a {
  color: var(--gray);
}
.login #backtoblog a:hover, 
.login #nav a:hover {
  color: var(--green);
}
.login-toggle #nav {
  margin-block-start: 1.5rem;
}
#loginform > #nav {
  display: none;
  visibility: hidden;
}


/* LOST PASSWORD FORM */
#lostpasswordform {
  color: var(--gray);
}


/* 'Back to Blog' link */
#backtoblog {
  display: none;
}


@media (min-width: 768px) {
  header content-width {
    flex-direction: row;
    place-content: space-between;
  }
}
@media (min-width: 1438px) {
  body.login {
    background-position: 50% calc( 100% + 208px );
    background-size: 2800px;
  }
  #login,
  content-width {
    margin-inline: auto;
  }
  #login {
    padding-block-start: 150px;
  }
}

@media (max-width: 767.95px) {
  body.login {
    background-size: 1200px;
  }
  header content-width .visit {
    display: none;
  }
  .login h1 {
    margin-block-end: 4rem;
  }
}