body {
  display: flex;
  min-height: 100vh;
  align-items: center;
}

main {
  width: 50%;
  text-align: center;
}

/* Logo */
.logo {
  display: block;
  max-width: 12rem;
  margin: 0 auto 4rem;
}
.logo img {
  max-width: 100%;
}

.container {
  padding-top: 2rem;
}

aside {
  width: 50%;
}

aside {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
}
aside .image-wrapper {
  background-image: url('../assets/login-bg.png');
  background-size: cover;
  height: 80vh;
  width: 90%;
  overflow: hidden;
  position: relative;
  top: 10vh;
  border-radius: 50px 0px 50px 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;

  padding: 40px;
}
aside .image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
aside .image-wrapper h2 {
  position: relative;
  z-index: 1;
  max-width: 8em;
  color: #fff;
}
aside .image-wrapper p {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  color: #fff;
}
aside::after {
  content: '';
  position: absolute;
  border-radius: 50px 0px 50px 0px;
  z-index: -1;
  top: 20px;
  margin-top: 10vh;
  left: 20px;
  width: 90%;
  height: 100%;
  background-color: #296EB6;
}
#loginBtn {
  width: 250px;
  margin: 1rem auto;
  display: flex;
  justify-content: center;
}


@media (max-width: 1023px) {
  aside {
    width: 100%;
    position: absolute;
  }
  aside .image-wrapper {
    width: 100%;
    height: calc(100vh - 350px);
    border-radius: 0;
    position: static;
  }
  aside .image-wrapper h2, aside .image-wrapper p {
    display: none;
  }
  aside .image-wrapper::before {
    background-color: #296EB680;
  }
  aside::after {
    display: none;
  }

  main {
    position: relative;
    z-index: 1;
    width: 100%;
    background-color: #fff;
    padding-top: 50px;
    border-radius: 50px 0;
    margin-top: 5rem;
  }
}

form {
  width: 90%;
  max-width: 400px;
  margin: 2rem auto 4rem;
}
.input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 1rem;
}
.input-wrapper.date-of-birth .date-of-birth-wrapper {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.input-wrapper.address .address-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.input-wrapper input {
  width: 100%;
  padding: 8px;
  border: 1px solid #C1C1C1;
  border-radius: 3px;
  font-size: 1rem;
}
.input-wrapper input[readonly] {
  background: #efefef;
}
.input-wrapper.address .address-wrapper input {
  width: calc((100% / 3) - 6px);
}
.input-wrapper.address .address-wrapper input:first-child, 
.input-wrapper.address .address-wrapper input:nth-child(2) {
  width: calc(50% - 4px);
}
.input-wrapper label {
  font-weight: 500;
}
.input-wrapper.required label::after {
  content: '*';
  color: #FF0000;
  margin-left: 4px;
}
@media(max-width: 440px) {
  .input-wrapper.address .address-wrapper input:first-child, 
  .input-wrapper.address .address-wrapper input:nth-child(2) {
    width: 100%;
  }
}

form input[type="submit"] {
  margin-top: 2rem;
}

#card-element {
  padding: 10px 12px;
  border: 1px solid #CDCDCD;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 1px 3px 0 #e6ebf1;
  transition: box-shadow 150ms ease;
  width: 100%;
}

#card-element:focus {
  box-shadow: 0 1px 3px 0 #cfd7df;
}

#card-element--invalid {
  border-color: #fa755a;
}

#card-element--webkit-autofill {
  background-color: #fefde5 !important;
}

#card-errors {
  color: #E94235;
  font-size: 14px;
  margin-top: 8px;
  min-height: 20px;
}