:root {
  font-size: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

form {
  margin: 20px auto;
  display: flex;
  padding: 5px;
  max-width: 1440px;


}


.form-image {
  flex-shrink: 2;
  min-width: 150px;
  min-height: 1024px;
  width: 535px;
  background-image: url(./asset/halie-west-25xggax4bSA-unsplash.jpg);
  background-position: center;
  background-size: cover;
  position: relative;

  .logo {
    margin-top: 224px;
    height: 8vw;
    min-height: 80px;
    background-color: rgb(0, 0, 0, 0.4);
  }

  img {
    height: 100%;

    margin: 0 auto;
  }

  p {
    position: absolute;
    bottom: 5px;
    text-align: center;
    color: white;
    width: 100%;
    margin: 0 10px;
    font-size: 1.1vw;
  }
}

.form-content {
  flex-shrink: 1;
  width: 905px;
  background-color: #F9FAFB;
  display: flex;
  flex-direction: column;

  .section {
    padding: 1rem 2.5rem;
  }

  .start {
    display: flex;
    align-items: end;
    flex-grow: 1;


    p {
      text-wrap: balance;
      font-size: 1.6rem;
      font-weight: bold;
    }

    p+p {
      margin: 2.2rem 0;
    }
  }

  .mid {
    padding-bottom: 2rem;
    background-color: white;
    box-shadow: 0 4px 6px -2px gray;

    h2 {
      font-size: 1.6rem;
      font-weight: 700;
    }

    .inp-container {

      .first-row,
      .second-row,
      .third-row {
        display: flex;
        gap: 0 70px;
        flex-wrap: wrap;
        max-width: 600px;
      }

      .inp:has(input:focus) label {
        color: gray;
      }

      .inp:has(input[type="password"]:focus) label #pass-span {
        color: red;
        transition: color 3s ease;
      }


      .inp {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        position: relative;

        #cfPass-span {
          position: absolute;
          top: 62px;
          left: 100px;
        }

        label {
          font-size: 1.1rem;
          font-weight: 500;

          span {
            font-size: 0.6rem;
            padding-left: 5px;
            color: white;
            transition: color 0.5s ease;
            position: absolute;
            top: 64px;
            left: 2px;
          }
        }

        input {
          appearance: none;
          width: 100%;
          border: 1px #E5E7EB solid;
          border-radius: 5px;
          font-size: 1rem;
          color: gray;
          padding: 0.2em;
          background-color: white;
          box-shadow: 0 0 0 20px white inset;

          &:invalid {
            border: 1px red solid;
          }

          &:focus {
            outline: none;
            box-shadow: 1px 3px 5px gray;
            border: 1px solid blue;
            color: black;
          }


          &::placeholder {
            font-size: 0.7rem;
            padding: 0.2em;
          }

        }

      }
    }

  }

  .end {
    flex-grow: 1.7;

    button {
      font-size: 1.1rem;
      padding: 0.6em 3vw;
      font-weight: 500;
      color: white;
      background-color: #596D48;
      border-radius: 8px;
      margin: 25px 0;
    }

    p {
      font-weight: 500;

      a {
        margin-left: 5px;
        color: #596D48;
      }
    }
  }

}