﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
.body-content {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body {
  background-color: #fff;
  background-image: url(/img/orange-dots.png), url(/img/login-bg.jpg);
  background-position: bottom center, center center;
  background-repeat: repeat-x, no-repeat;
  background-size: auto, contain;

  font-family: 'Roboto', sans-serif;
  color: #757575;

  font-size: 14pt;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 15px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table,
th,
td {
  border: 1px solid #ddd;
  padding: 5px;
  text-align: left;
  vertical-align: top;
}
th {
  white-space: nowrap;
}
tr:nth-child(even) {
  background-color: #eee;
}

td code {
  word-break: break-all;
}

.body-content {
  display: flex;
  align-items: center;
  flex-direction: row;
  padding-bottom: 60px; /* keep footer always visible */
}

.card {
  box-shadow: 0px 0px 10px 7px rgba(0, 0, 0, 0.14);
  min-width: 400px;
  max-width: 960px;
  max-height: calc(90vh - 60px); /* keep footer always visible */
  overflow-y: auto;
  overflow-x: hidden;

  margin: auto;
  background: #fff;
  border-radius: 3px;
  padding: 15px 30px;

  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  padding-top: 20px;
  margin-bottom: 30px;

  color: #000;
}

.logo img {
  /* act as if image is 0 width */
  width: 70px;
  margin-left: -115px;
  height: auto;
}

.logo h1 {
  font-weight: 300;
  font-size: 1.75rem;
  margin-left: 45px;
}

.bottom-text {
  position: absolute;
  bottom: 0;
  width: 100vw;
  overflow-x: auto;

  line-height: 30px;

  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: space-between;

  font-size: 11pt;
  padding: 30px 15px;
}

.bottom-text .wrapper {
  width: 475px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.bottom-text .content {
  background: #fff;
  padding: 0 30px;
}

.bottom-text .wrapper.left {
  justify-content: start;
}
.bottom-text .wrapper.center {
  justify-content: center;
}
.bottom-text .wrapper.right {
  justify-content: flex-end;
}

.bottom-text p {
  margin: 0;
}

.bottom-text img {
  vertical-align: middle;
}

.legal-links {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}

.legal-links .spacing {
  margin: 0 20px;
  display: block;
  font-size: 150%;
}

a,
a:link {
  transition: color 250ms linear;
  color: #212121;
  text-decoration: underline;
}

a:hover {
  color: #757575;
}

.btn,
a.btn,
input.btn,
button.btn {
  display: inline-block;
  text-transform: capitalize;
  font-family: 'Roboto', sans-serif;

  height: 40px;
  line-height: 40px;

  padding: 0 15px;
  margin: 0 15px;

  border: none;
  border-radius: 3px;
  text-decoration: none;
  background: #2bbbad;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.02857em;

  font-size: 12pt;
  cursor: pointer;
}

a.aad-nipousers, .btn.contrast {
  border: 1px solid #2bbbad;
  color: #2bbbad;
  background-color: #fff;
}

.external-login-list {
  margin: 30px 0;
  list-style: none;
  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: center;
}

hr {
  border: none;
  border-top: 1px solid;
  border-color: rgba(0, 0, 0, 0.07);
  margin: 25px -30px;
}

hr.login-divider {
  margin-bottom: 30px;
  overflow: visible;
}
hr.login-divider::before {
  content: 'or';
  text-align: center;
  display: block;
  position: relative;
  z-index: 20;
  top: -12px;
  width: 3em;
  margin: 0 auto;
  background: #fff;
  color: rgba(0, 0, 0, 0.34);
}

p.form-explanation {
  margin: -10px 0 2rem 0;
  text-align: center;
}

form,
fieldset {
  border: none;
}

form.user-form fieldset {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: calc(100% - 50px);
  margin: 0 auto 15px auto;
}

form.user-form label {
  display: none;
}

form .login-remember label {
  display: block;
  font-weight: normal;
}

input:not([type]),
input[type='text'],
input[type='password'] {
  width: 100%;
  height: 40px;
  margin-bottom: 30px;
  font-size: 14pt;

  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  padding: 0 5px;

  font-family: 'Roboto', sans-serif;

  transition: border-color 0.5s ease-out;
}

input::placeholder {
  font-style: italic;
  font-size: 12pt;
}

input:not([type]):focus,
input[type='text']:focus,
input[type='password']:focus {
  border-bottom: 2px solid #2bbbad;
  margin-bottom: 29px; /* compensate for extra border */
}

form.user-form button {
  display: inline-block;
  margin: 30px auto 0 auto;
  min-width: 130px;
}

.checkbox {
  display: flex;
  flex-direction: row;
  position: relative;
}

/* the browser checkbox will be covered by our custom one, so don't show outline */
.checkbox input[type='checkbox'] {
  outline: none;
}

/* our checkbox will be bigger so add padding to move label right */
.checkbox input[type='checkbox'] + label {
  cursor: pointer;
  padding-left: 20px;
}

/* render a square that will be our new checkbox */
.checkbox input[type='checkbox'] + label::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #a9a9a9;
  background: #fff;
  border-radius: 3px;

  transition: all 150ms ease-in;

  left: 0px;
}

/* focus & hover highlight */
.checkbox input[type='checkbox']:not(:checked) + label:hover::before,
.checkbox input[type='checkbox']:not(:checked):focus + label::before {
  border-color: #2bbbad;
}

/* checked: square is now filled in */
.checkbox input[type='checkbox']:checked + label::before {
  border-color: #2bbbad;
  background: #2bbbad;
}

.checkbox input[type='checkbox']:checked:focus + label::before {
  box-shadow: 1px 1px 20px #2bbbad66;
}

/* checked: render the checkmark */
.checkbox input[type='checkbox']:checked + label::after {
  content: '';
  position: absolute;
  z-index: 2;

  width: 6px;
  height: 11px;
  left: 7px;
  top: 2px;

  transform: rotate(45deg);
  border-color: white;
  border-style: solid;
  border-width: 0 2px 2px 0;
}

.error-message {
  padding: 15px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;

  margin-top: -10px;

  line-height: 30px;
}

.error-message > p {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.error-message img {
  margin-right: 15px;
}

.error-message strong {
  margin-right: 1ex;
  display: inline-block;
}

.validation-summary-errors,
.validation-summary-errors ul {
  display: inline;
}

.validation-summary-errors ul {
  list-style: none;
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  max-width: 600px;
  text-align: center;
}
.error-page .header {
  display: flex;
  flex-direction: row;
}
.error-page img {
  width: 50px;
  height: auto;
}
.error-page h1 {
  margin: 30px;
}

iframe {
  border: none;
}

/* domain switch page */

.container.domains .card {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.domain-switch-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
}

.domain-switch-form > p {
  padding: 0 30px;
}

.domain-switch-form .domain-switch-btn {
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;

  transition: 250ms ease-in background-color;

  font-family: 'Roboto', sans-serif;
  text-align: left;

  padding: 15px 30px;

  border-width: 1px 0 0 0;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.07);
  background: white;
  cursor: pointer;
}

.domain-switch-form .domain-switch-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

.domain-switch-btn .domain-name {
  font-size: 18pt;
  margin: 0 0 9px 0;
}

.domain-switch-btn .domain-in-list .domain-name {
  font-size: 18pt;
  margin: 0 0 9px 24px;
}

.domain-switch-btn .roles {
  font-size: 12pt;
  color: #757575;
  font-style: italic;
  margin: 9px 0 0 25px;
}

.domain-switch-form .switch-domain-title {
  font-size: 14pt;
  font-weight: 500;
  margin-left: 30px;
}

.domain-switch-form .switch-domain-description {
  font-size: 10pt;
}

.domain-switch-form .current-domain {
  font-size: 10pt;
  margin-left: 30px;
  margin-bottom: 20px;
  color: #757575;
}

.domain-switch-btn .current-domain-in-list, img {
  display: inline-block;
}

/* end domain switch page */
@media (min-width: 650px) {
  .card {
    min-width: 600px;
  }
}

/*
on desktop screens we have a bit more room
especially vertically
*/
@media (min-height: 1000px) {
  .card {
    padding: 30px;
  }
  hr {
    margin: 50px -30px;
  }

  .logo img {
    width: 100px;
    margin-left: -145px;
  }

  .logo h1 {
    font-size: 2.25rem;
  }

  .error-message {
    margin-bottom: 30px;
  }

  input:not([type]),
  input[type='text'],
  input[type='password'] {
    margin-bottom: 50px;
  }

  input:not([type]):focus,
  input[type='text']:focus,
  input[type='password']:focus {
    margin-bottom: 49px; /* compensate for border */
  }

  .domain-switch-form .domain-switch-btn {
    padding: 30px;
  }
}

kbd {
  padding: .2rem .4rem;
  font-size: 87.5%;
  color: #fff;
  background-color: #212529;
  border-radius: .2rem;
}
div.qr-code {
    display: flex;
    justify-content: center;
}

div.verification-code {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.verification-code .two-factor-code {
  display: flex;
  flex-direction: column;
  width: 50px;
  height: 80px;
  font-size: 32px;
  margin: 3px;
  border-width: 1px;
  border-style: solid;
  color: #2bbbad;
  border-color: #2bbbad;
  border-radius: 6px;
  text-align: center;
  padding-top: 20px;
}

.two-factor-code:nth-child(3) {
    margin-right: 18px;
}
.two-factor-code.focussed {
  border-width: 2px;
}

.verification-code-input {
  opacity: 0;
  margin-top: -24px;
  margin-bottom: 0;
}

span.error-message {
  color: #d50000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 0;
  margin-top: -60px;
  padding: 0;
}

form.password-change-form .password-requirements-header {
  font-size: 12pt;
}

form.password-change-form .password-validation-text-red {
  color: #EA3323;
  font-size: 10pt;
}

form.password-change-form .password-validation-text-green {
  color: #2bbbad;
  font-size: 10pt;
}

form.password-change-form #passwordStrength {
  display: flex;
  flex-direction: column; /* Stacks each requirement vertically */  
}

form.password-change-form .password-requirement {
  display: flex;
  align-items: center; /* Centers icon and text vertically */
  gap: 8px; /* Adds space between icon and text */
}

form.password-change-form #passwordStrength p {
  margin: 6px 0; /* Overrides the global 15px margin */
}

form.password-change-form #change-password-button:disabled {
  background-color: rgb(156, 163, 175);
}



