@import url("common.css");

/********************
 * Base
 ********************/

body {
  margin: 0;
  padding: 0;
}

.unified-login {
  width: 100%;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-width: 350px;
  padding: 34px 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

/*****************************
 * Container
 *****************************/

.unified-login__container {
  width: 100%;
  max-width: 382px;
}

.unified-login__card {
  width: 100%;
  margin: 0 auto;
}

.unified-login__card-header {
  width: 100%;
  display: flex;
  height: 135px;
  align-items: flex-start;
  justify-content: center;
  background-color: #01374C;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.unified-login__card-logo {
  width: 270px;
  height: 70px;
  overflow: hidden;
  font-size: 0;
  color: transparent;
  background-size: 90%;
  background-position: center;
  background-repeat: no-repeat;
}

.unified-login__field input[type=text]:disabled {
    opacity: 1 !important;
}

.unified-login__card-content {
  width: 100%;
  min-height: 150px;
  position: relative;
  margin-top: -65px;
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 24px;
  background-color: #ffffff;
  padding-top: 5px;
}

/*****************************
 * Form text and password inputs
 *****************************/

 .unified-login__label--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;
}

.unified-login__form input[type="text"],
.unified-login__form input[type="password"] {
  border: 0;
  outline: 0;
  width: 100%;
  height: 60px;
  padding: 0 32px 0 37px;
  color: #25292F;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
  background: transparent;
  border-bottom: 1px solid #e5e5e5;
  font-family: 'ProximaNova-Regular', Helvetica, Arial, sans-serif;
}

.unified-login__field.unified-login__field--password input {
  padding-right: 65px;
}

.unified-login__form input[type="text"]::-webkit-input-placeholder,
.unified-login__form input[type="password"]::-webkit-input-placeholder {
  font-family: 'ProximaNova-Light', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #697489;
}

.unified-login__form input[type="text"]::-moz-placeholder,
.unified-login__form input[type="password"]::-moz-placeholder {
  font-family: 'ProximaNova-Light', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #697489;
  opacity: 1;
}

.unified-login__form input[type="text"]:-ms-input-placeholder,
.unified-login__form input[type="password"]:-ms-input-placeholder {
  font-family: 'ProximaNova-Light', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #697489;
}

.unified-login__form input[type="text"]::placeholder,
.unified-login__form input[type="password"]::placeholder {
  font-family: 'ProximaNova-Light', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #697489;
}

.unified-login__form input[type="text"]:focus,
.unified-login__form input[type="password"]:focus {
  border-bottom: 2px solid #006aa9;
  outline: 0;
}

/* Hide native reveal/clear controls on Microsoft Edge/IE password fields */
.unified-login__form input[type="password"]::-ms-reveal,
.unified-login__form input[type="password"]::-ms-clear {
  display: none;
}

.unified-login__form input:-webkit-autofill,
.unified-login__form input:-webkit-autofill:hover,
.unified-login__form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #25292F;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
  transition: background-color 5000s ease-in-out 0s;
  font-family: 'ProximaNova-Regular', Helvetica, Arial, sans-serif;
  font-size: 18px;
}

.unified-login__form input.unified-login__input--error {
  color: #D91322;
}

/*****************************
 * Form password toggle
 *****************************/

.unified-login__field {
  display: flex;
  align-items: center;
  position: relative;
  color: #444;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-login__field--password .unified-login__password-toggle,
.unified-login__field--password .unified-login__password-toggle--visible {
  width: 23px;
  height: 23px;
  position: absolute;
  right: 35px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.unified-login__field--password .unified-login__password-toggle:focus-visible {
  outline: 2px solid #006aa9;
  outline-offset: 2px;
  border-radius: 2px;
}

.unified-login__field--password .unified-login__password-toggle {
  background-image: url(../images/icon-visibility-on.png);
}

.unified-login__field--password .unified-login__password-toggle--visible {
  background-image: url(../images/icon-visibility-off.png);
  background-position: right 3.5px;
}

/*****************************
 * Form remember me checkbox
 *****************************/

.unified-login__remember {
  padding-left: 32px;
  padding-right: 32px;
  height: 60px;
  display: flex;
}

.unified-login__checkbox {
  display: flex;
  align-items: center;
  position: relative;
}

.unified-login__checkbox input[type="checkbox"] {
  position: relative;
  width: 18px;
  height: 18px;
  margin: 0;
  margin-right: 8px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.unified-login__checkbox label {
  margin: 0;
  font-family: 'ProximaNova-Regular', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #25292F;
  cursor: pointer;
  display: flex;
  align-items: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
  line-height: 1;
}

.unified-login__checkbox label::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 1px solid #a6a6a6;
  border-radius: 2px;
  background: #ffffff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  pointer-events: none;
}

.unified-login__checkbox input[type="checkbox"]:checked + label::before {
  border-color: #353C46;
}

.unified-login__checkbox label::after {
  content: "";
  position: absolute;
  left: -16.5px;
  top: 50%;
  width: 5px;
  height: 10px;
  margin-top: -6px;
  border: solid #006aa9;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.unified-login__checkbox input[type="checkbox"]:checked + label::after {
  opacity: 1;
}

.unified-login__checkbox input[type="checkbox"]:focus + label::before,
.unified-login__checkbox input[type="checkbox"]:focus-visible + label::before {
  outline: 2px solid #006aa9;
  outline-offset: 2px;
}

/*****************************
 * Form submit and SSO button
 *****************************/

.unified-login__submit {
  padding: 0 34px;
  margin-top: 8px;
}

.unified-login__separator {
  margin: 8px;
  font-size: 14px;
  text-align: center;
  color: #25292F;
}

.unified-login__sso {
  padding: 0 34px;
  margin-top: 8px;
}

.unified-login__sso .btn {
  border-color: #006aa9;
}

.unified-login__sso-text {
  font-family: 'ProximaNova-Regular', Helvetica, Arial, sans-serif;
  color: #353C46;
  font-size: 12px;
  padding-top: 8px;
  margin: 0;
}

/*****************************
 * Privacy Policy link
 *****************************/

.unified-login__privacy {
  padding: 8px 40px 0;
  text-align: center;
}

.unified-login__privacy-link {
  font-family: 'ProximaNova-Regular', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #006aa9;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  text-align: center;
}

.unified-login__privacy-link:hover {
  color: #005a8f;
  text-decoration: underline;
}

/*****************************
 * copyright
 *****************************/

.unified-login__card-footer-logo {
  background-image: url(../images/ICE-MT-Corp-BLACK_cube.svg);
  background-size: 30px;
  background-repeat: no-repeat;
  width: 100%;
  height: 30px;
  background-position: center;
  margin-top: 20px;
}

.unified-login__copyright {
  font-family: 'ProximaNova-Regular', Helvetica, Arial, sans-serif;
  margin-top: 12px;
  color: #25292F;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
}

/*****************************
 * Error message
 *****************************/

.unified-login__error[hidden] {
  display: none;
}

.unified-login__error {
  width: 100%;
  padding: 8px 38px 38px 38px;
  height: 90px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -30px;
  font-family: 'ProximaNova-Regular', Helvetica, Arial, sans-serif;
  font-size: 14px;
  background-color: #D91322;
  color: #ffffff;
  text-align: center;
}

.unified-login__error-text {
  overflow: hidden;
  width: 100%;
  max-height: 35px;
}

/*****************************
 * Session logout
 *****************************/

.unified-login__session-logout {
  padding: 24px 32px 12px 32px;
}

.unified-login__session-logout-message {
  font-family: 'ProximaNova-Regular', Helvetica, Arial, sans-serif;
  color: #25292F;
  font-size: 14px;
}

.unified-login__hidden {
  display: none;
}

/*****************************
 * breakpoints
 *****************************/

/* Desktop & Tablet (≥768px) */
@media only screen and (min-width: 768px), only screen and (min-device-width: 768px) {
  /* Desktop & Tablet */
}

/* Tablet landscape (768px–1366px, landscape) */
@media only screen and (min-device-width: 768px) and (max-device-width: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1) {
  /* Tablet landscape */
}

/* Mobile (320px–736px, landscape) */
@media only screen and (min-device-width: 320px) and (max-device-width: 736px),
       only screen and (orientation: landscape) and (min-device-width: 360px) and (max-device-width: 1000px) and (-webkit-min-device-pixel-ratio: 2),
       only screen and (orientation: landscape) and (min-device-width: 360px) and (max-device-width: 1000px) and (min--moz-device-pixel-ratio: 2),
       only screen and (orientation: landscape) and (min-device-width: 360px) and (max-device-width: 1000px) and (-o-min-device-pixel-ratio: 2),
       only screen and (orientation: landscape) and (min-device-width: 360px) and (max-device-width: 1000px) and (min-device-pixel-ratio: 2) {
  .unified-login{
    padding: 0 42px;
  }

  .unified-login__card-footer-logo{
    margin-top: 16px;
    background-size: 30px;
  }

  .unified-login__form input[type="text"],
  .unified-login__form input[type="password"] {
    height: 60px;
    padding: 0 24px 0 25px;
  }

  .unified-login__remember {
    padding-left: 24px;
    padding-right: 24px;
  }

  .unified-login__submit {
    padding: 0 24px;
  }

  .unified-login__privacy {
    padding: 12px 40px 4px 40px;
  }

  .unified-login__sso {
    padding: 0 24px;
  }

  .unified-login__sso-text {
    font-size: 12px;
  }

  .unified-login__copyright {
    width: 190px;
    margin: auto;
    padding-top: 12px;
  }
}
