@import 'common.css';
section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .left {
    overflow: hidden;

    @media (max-width: 768px) {
      display: none;
    }

    .auth_container {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      overflow: hidden;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .right {
    overflow-y: auto;

    .auth_container {
      display: flex;
      height: 100%;
    }
  }
}

.sign_up_body,
.log_in_body {
  padding: 6rem;
  width: 100%;

  h1 {
    font-weight: 700;
    font-size: 3rem;
    line-height: 4rem;
    color: var(--color-text-main);
  }
  
  h4 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    letter-spacing: -0.02em;
    text-align: left;
    color: var(--color-text-secondary);
    
    a {
      color: var(--color-link);
    }
  }
}

.stepper {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.step.hidden {
  display: none;
}
.step-content, .log_in_form {
  padding-bottom: 4rem;
}

.main-password {
  position: relative;
}
.icon-view {
  position: absolute;
  right: 12px;
  top: 18px;
}
.input-password {
  font-family: monospace; 
  font-size: 1rem; 
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--color-text-main);
  text-transform: uppercase;
  margin-left: 5px;
}
.form-control {
  height: 60px;
  padding: 0 10px 0 10px;
  gap: 0;
  border-radius: 16px;
  border: 1px solid var(--color-grey-light);
  opacity: 1;
  text-align: left;
}
.form-control:focus {
  border: 2px solid var(--color-primary);
  outline: none;
  box-shadow: none;
}
.btn-primary {
  width: 100%;
  height: 56px;
  padding: 16px 35px;
  border-radius: 6px;
  background: var(--color-primary);
  border: none;
  color: var(--color-white);
  transition: background 0.3s;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-top: 30px;

  &:hover {
    background: var(--color-primary);
    opacity: 0.9;
  }
}

.btn-primary i,
.btn-primary svg {
  margin-left: 8px;
}

.btn-google {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-background);
  border-radius: 6px;
  opacity: 1;
  transition: box-shadow 0.3s;
  color: #131316;
  font-size: 14px;
  font-weight: 500;
}

.btn-google:hover {
  background: var(--color-background);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-grey-light);
}

.divider {
  width: 100%;
  height: 0;
  border: none;
  border-bottom: 0.5px solid var(--color-divider);
  margin: 80px 0 50px 0;
}

.step_para p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-grey-dark);
  
  span {
    color: var(--color-primary);
  }
}

input[type="radio"] {
  accent-color: var(--color-accent);
  width: 26px;
  height: 26px;
}

.step_2_option {
  gap: 1rem;
}

.step_2_option_item label {
  display: inline-block;
  vertical-align: middle;
  font-size: 1rem;
  font-weight: 400;
  line-height: 24px;
  margin-left: 8px;
}

.step_2_option_item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.form-check-input {
  width: 28px;
  height: 28px;
  background-color: var(--color-white);
  border: 2px solid var(--color-input-border);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.form-check-input:focus {
  box-shadow: none;
}

.form-check-input:checked {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  position: relative;
}

.form-check-input:checked::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-image: url("/public/site_html/Images/Checklist.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.form-check-label {
  font-size: 1rem;
  font-weight: 400;
  line-height: 24px;
  margin-left: 8px;
  vertical-align: middle;
}

@media (max-width: 1199px) {
  .divider {
      margin: 40px 0;
  }
  .sign_up_body, .log_in_body {
      padding: 4rem;
      width: 100%;
  }
}
@media (max-width: 1099px) {
  .form-control {
    width: 100%;
  }

  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
@media (max-width: 992px) {
  .sign_up_body, .log_in_body {
    padding: 4rem 3rem;
  }
}
@media (max-width: 767px) {
  .btn-primary {
    padding: 12px 25px;
    height: auto;
  }
  .sign_up_body, .log_in_body {
    padding: 4rem 1rem;
  }
  .btn-google{
    margin: -70px auto 0;
    width: 90%;
  }
  .divider {
    margin-top: 120px;
  }
  .log_in_form .btn-primary{
    margin: 30px auto 0;
    width: 90%;
    display: block;
  }
  .sign_up_form .btn-primary{
    margin: 30px auto 0;
    width: 90%;
    display: block;
  }
}