* {
  box-sizing: border-box;
  margin: 0;
}

html, body {
  display: flex;
  flex-direction: column;
	min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  color: #000;
}

body a {
  color: #000;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'Roboto', sans-serif;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-inline: 24px;
  margin-inline: auto;
  height: 100%;
  text-align: center;
}

input::-webkit-input-placeholder {
  font-family: 'Roboto', sans-serif;
  color: #5A5A5A !important;
}

.login-layout {
  display: flex;
  gap: 16px;
  align-items: center;
	flex-grow: 1;
  margin-inline: auto;
  padding: 32px;
  width: 100%;
  height: 100%;
  max-width: 1440px;
}

.login-layout aside {
  width: 50%;
	height: 100%;
  max-height: 960px;
}

.login-layout main {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-inline: auto;
  padding: 0 32px;
  width: 100%;
  height: 100%;
  max-width: 1440px;
}

.login-form {
  margin-inline: auto;
  padding-block: 80px;
  max-width: 411px;
  width: 100%;
  text-align: center;
}

.login-form h1 {
  margin-block-end: 6px;
  font-size: 30px;
  font-weight: 700;
  line-height: 39px;
  letter-spacing: -0.3px;
}

.login-form p {
  font-size: 18px;
  line-height: 28px;
  color: #777;
}

.login-form label {
  display: block;
  margin-block: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  color: #26203B;
  text-align: left;
}

.login-footer {
  max-width: 436px;
}

.login-footer p {
  margin-inline: auto;
  max-width: 259px;
  font-size: 10px;
  line-height: 12px;
  color: #9C9AA5;
  text-align: center;
}

.login-footer p a {
  font-weight: 500;
  color: #26203B;
}

.logo-block {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 0 0 55px;
}

.logo-block hr {
  display: block;
  width: 1px;
  height: 40px;
  border: none;
  border-right: 1px solid #E0E0E0;
}

.logo-block img {
  width: 100%;
  height: auto;

  &:nth-child(1) {
    max-width: 127px;
  }

  &:nth-child(3) {
    max-width: 123px;
  }

  &:nth-child(5) {
    max-width: 46px;
    aspect-ratio: 1;
  }
}

.logo-block img:nth-child(1) {
  max-width: 127px;
}

.logo-block img:nth-child(3) {
  max-width: 123px;
}

.logo-block img:nth-child(5) {
  max-width: 46px;
  aspect-ratio: 1;
}

.entry {
  inline-size: 100%;
  max-inline-size: 411px;
  margin-inline: auto;
  padding-block: 16px;
}

.entry input:not([type=checkbox]) {
  inline-size: 100%;
  max-block-size: 48px;
  margin-block-end: 8px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 24px;
  border: 1px solid #777;
  border-radius: 8px;
}

.entry input:not([type=checkbox]):focus {
  outline: none;
}

.entry input:not([type=checkbox]).error:invalid,
.entry input:not([type=checkbox]).required-error:invalid {
  border: 1px solid #E31E24;
  color: #E31E24;
}

.entry input[type=checkbox] {
  position: relative;
  inline-size: 24px;
  block-size: 24px;
  cursor: pointer;
}

.entry input[type=checkbox]:checked:after {
  position: absolute;
  content: '';
  block-size: 27px;
  inline-size: 27px;
  background-image: url("https://emsprdcustfirstwesta01.blob.core.windows.net/custom-login-ui/checkbox.svg") !important;
  background-repeat: no-repeat;
  background-size: cover;
  top: -2px;
  left: -2px;
}

.entry .buttons button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 34px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  line-height: 118%;
  color: #FFF;
  text-align: center;
  background-color: #000;
  border: 1px solid #000;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.entry .buttons button:hover {
  color: #000;
  background-color: #FFF;
  transition: all 0.5s ease;
}

.entry .reset-pass {
  margin-block-end: 24px;
  text-align: right;
}

.entry .reset-pass a {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  line-height: 14px;
  color: #777;
}

.entry .reset-pass a::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: #777;
  transition: width .3s;
  margin: 1px auto 0;
}

.entry .reset-pass a:hover::after {
  width: 0;
}

/* SLIDER */
.carousel__wrapper {
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: calc(100dvh - 64px);
  max-height: 960px;
  max-width: 676px;
  background-image: url('https://emsprdcustfirstwesta01.blob.core.windows.net/custom-login-ui/bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 20px;
}

.carousel-inner {
  width: 100%;
  color: #FFF;
  border-radius: 20px;
  overflow: hidden;
}

.carousel__track {
  display: inline-flex;
  transition: all 0.5s;
  justify-content: flex-start;
}

.card__item {
  flex-shrink: 0;
  padding: 110px 40px 88px;
  width: 100%;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.card__item h2 {
  margin-block-end: 14px;
  font-size: 40px;
  font-weight: 900;
  line-height: 117%;
  text-align: center;
}

.card__item h2.align-left {
  margin-inline: auto;
  max-width: 395px;
  text-align: left;
}

.card__item ul {
  margin-inline: auto;
  padding: 4px 0 0;
  max-width: 395px;
  list-style-type: none;
  text-align: left;
}

.card__item li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 24px;
  align-items: flex-start;
  font-size: 20px;
  font-weight: 300;
  line-height: 120%;
}

.card__item li:not(:last-child) {
  margin-block-end: 28px;
}

.card__item li svg {
  width: 32px;
}

.card__item li p {
  margin: 0;
  max-width: unset;
  font-size: 20px;
  font-weight: 300;
  line-height: 120%;
  text-align: left;
}

.card__item-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  height: 100%;
  max-height: 100%;
  text-align: center;
}

.card__item-header p {
  margin-inline: auto;
  max-width: 360px;
  font-size: 22px;
  font-weight: 500;
  line-height: 117%;
  text-align: center;
}

.card__item-content p {
  margin-block-start: 18px;
  max-width: unset;
  font-size: 24px;
  font-weight: 400;
  line-height: 117%;
}

.carousel__nav-dots {
  position: absolute;
  display: flex;
  gap: 9px;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  right: 0;
  bottom: 40px;
  left: 0;
  line-height: 0;
  list-style-type: none;
}

.carousel__nav-dots li {
  padding: 0;
  width: 8px;
  height: 8px;
  font-size: 0;
  background: rgb(255 255 255 / 50%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.carousel__nav-dots li.selected {
  width: 24px;
  height: 8px;
  background: #FFF;
  border-radius: 10px;
}

.carousel__nav-next,
.carousel__nav-prev {
  position: absolute;
  bottom: 32px;
  font-family: 'Roboto', sans-serif;
}

.carousel__nav-next {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 34px;
  width: fit-content;
  right: 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 118%;
  color: #000;
  background-color: #FFF;
  text-align: center;
  border: 1px solid #FFF;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.carousel__nav-prev {
  padding: 14px 20px;
  left: 20px;
  font-size: 16px;
  line-height: 24px;
  color: #FFF;
  background: transparent;
  border: none;
}

.show {
  display: flex !important;
}

.hide {
  display: none !important;
}

/* MEDIA */
@media (min-height: 1100px) {
  .login-form {
    padding-block: 200px 100px;
  }
}

@media (max-width: 1100px) {
  .logo-block {
    gap: 14px;
    padding: 0 0 33px;
  }
  
  .logo-block hr:nth-child(2) {
    order: 2;
  }

  .logo-block hr:nth-child(4) {
    order: 4;
  }

  .logo-block img:nth-child(1) {
    order: 3;
    max-width: 92px;
  }
  
  .logo-block img:nth-child(3) {
    order: 1;
    max-width: 74px;
  }
  
  .logo-block img:nth-child(5) {
    order: 5;
    max-width: 33px;
  }

  .card__item {
    padding: 94px 24px;
  }

  .card__item h2 {
    font-size: 32px;
    line-height: 117%;
  }

  .card__item-content h2 {
    font-size: 24px;
    line-height: 117%;
  }
  
  .card__item li {
    gap: 16px;
    font-size: 18px;
    line-height: 133%;
  }
  
  .card__item li:not(:last-child) {
    margin-block-end: 16px;
  }
  
  .card__item li p {
    font-size: 18px;
    line-height: 133%;
  }
  
  .card__item-header p {
    font-size: 18px;
    line-height: 117%;
  }
  
  .card__item-content p {
    font-size: 18px;
    line-height: 117%;
  }
}

@media (max-width: 800px) {
  .login-layout {
    padding: 0;
  }

  .login-layout aside {
    width: 100%;
    max-width: 100%;
  }

  .login-layout main {
    padding-block: 0 44px;
    width: 100%;
    height: 100dvh;
  }

  .entry {
    padding-block: 24px;
  }

  .card__item {
    padding: 110px 0 140px;
  }

	.card__item .card__item-content p,
  .card__item .card__item-content h2,
  .card__item .card__item-content ul {
    padding: 0 20px;
  }

  .carousel__wrapper {
    height: 100dvh;
    max-height: 100%;
    max-width: 100%;
    background-size: cover;
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  .login-form h1 {
    font-size: 24px;
    line-height: 31px;
    letter-spacing: -0.24px;
  }

  .login-form p {
    font-size: 16px;
    line-height: 24px;
  }

  .entry input:not([type=checkbox]) {
    max-inline-size: 100%;
    font-size: 16px;
    line-height: 1.31;
  }
}

/* OLD STYLES */
/* MODAL */
#simplemodal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  opacity: 0.4 !important;
  z-index: 999;
}

#simplemodal-container {
  position: fixed!important;
  padding: 20px 20px 20px 20px!important;
  top: 50%!important;
  left: 50%!important;
  width: calc(100% - 20px)!important;
  height: auto!important;
  max-width: 345px!important;
  background-color: white!important;
  transform: translateY(-50%) translateX(-50%)!important;
  z-index: 1000;
}

#simplemodal-container * {
  display: block;
  text-align: center;
  font-size: 19px;
  color: #000;
}

#simplemodal-container .simplemodal-data {
  padding: 0;
  .preloader{
    display: none;
  }
}

#simplemodal-container .simplemodal-data .preloader {
  display: none;
}

/* INPUTS */
input[type=text].highlightError,
input[type=text]:invalid,
input[type=email].highlightError,
input[type=email]:invalid,
input[type=password].highlightError,
input[type=password]:invalid,
.attrEntry input[type=text].highlightError,
.attrEntry input[type=text]:invalid,
.attrEntry input[type=email].highlightError,
.attrEntry input[type=email]:invalid,
.attrEntry input[type=password].highlightError,
.attrEntry input[type=password]:invalid {
  border: 1px solid #E31E24;
}

.attrEntry.validate input:invalid,
.attrEntry.validate input.invalid {
  border: 1px solid #E31E24 !important;
}

/* RE-ORDER LABELS */
.entry-item,
.attrEntry.validate {
  display: flex;
  flex-direction: column;
}

.TextBox .attrEntry.validate > *:nth-child(1) {
  order: 1;
}

.TextBox .attrEntry.validate > *:nth-child(2) {
  order: 3;
}

.TextBox .attrEntry.validate > *:nth-child(3) {
  order: 2;
}

.TextBox .attrEntry.validate > *:nth-child(4) {
  order: 4;
}

.TextBox .attrEntry.validate > *:nth-child(5) {
  order: 5;
}

.TextBox .attrEntry.validate > *:nth-child(6) {
  order: 6;
}

.entry-item > *:nth-child(1) {
  order: 2;
}

.entry-item > *:nth-child(2) {
  order: 1;
}

.entry-item > *:nth-child(3) {
  order: 3;
}

/* LOGIN */
.divider {
  display: none;
}

.create {
  text-align: center;
}

.create a {
  display: block;
}

#forgotPassword {
  display: none;
}

.intro {
  display: none;
}

.alert {
  color: #E31E24;
}

.attrEntry .error.itemLevel,
.attrEntry .helpText {
  display: none;
}

.attrEntry.validate .error.itemLevel.show,
.attrEntry.validate .helpText.show {
  display: block;
}

.attrEntry > div:first-child{
  margin-bottom: 15px;
}

.helpText,
.error p {
  margin-top: 0;
  margin-bottom: 5px;
  color: #E31E24;
}

.helpLink {
  display: block;
  text-align: center;
  margin-bottom: 15px;
  color: #000;
}

.tiny {
  font-size: 13px;
}

/* BUTTONS */
.buttons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.buttons button:disabled {
  background-color: #F3F3F3;
}

.buttons button:not([disabled]) {
    cursor: pointer;
}

.buttons button:not([disabled]):hover {
  background-color: darken(#F3F3F3, 5%);
}

.buttons button#cancel {
  position: fixed;
  top: 0;
  left: calc((100% - 345px) / 2);
  display: block;
  width: 100%;
  max-width: 345px;
  background-color: white;
}

.buttons button#cancel:before {
  z-index: 2;
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 0;
  top: 10px;
  background-image: url(icon-arrowback-red.png);
  background-size: cover;
  background-repeat: no-repeat;
}


.buttons button#cancel:after{
  z-index: 1;
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  background-color: white;
}

.buttons button#continue,
.buttons button#reset {
  position: relative;
}

.buttons button#continue:not([disabled]),
.buttons button#reset:not([disabled]) {
  background-color: #E31E24;
  color: white;
  padding-right: 30px;
}

.buttons button#continue:not([disabled]):hover,
.buttons button#reset:not([disabled]):hover {
  background-color: darken(#E31E24, 5%);
}

.buttons button#continue:not([disabled])::after,
.buttons button#reset:not([disabled])::after {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  right: 10px;
  top: 11px;
  background-size: cover;
  background-repeat: no-repeat;
}

.buttons button#continue:not([disabled]):after {
  background-image: url(icon-arrow-white.png);
}

.buttons button#reset:not([disabled]):after {
  background-image: url(icon-reset-white.png);
}

.buttons.verify {
  flex-direction: row;
  padding-top: 0;
}

.buttons.verify .verifyButton {
  color: #E31E24;
  margin-right: 15px;
}

.buttons.verify .sendButton {
  color: #000;
}

@media (max-width: 375px) {
  .buttons button#cancel {
    left: 0px;
  }

  .buttons button#cancel:before {
    left: 10px;
  }
}