/*

Übersicht:

1. Login Form
2. Media Screen Tablet 
3. Media Screen Phone

*/

:root {
  --black: black;
  --white: white;
  --light-gray: #f4f4f4;
  --border-gray: #cccccc;
  --mid-gray: #838383;
  --light-green: #949494;
  --mid-green: #7a7a7a;
}

body {
  margin: 0px;
  padding: 0px;
  font-family: "Inter", Arial, sans-serif;
  overflow: hidden;
}

/* 
************************************
01. Login Form
************************************
*/

#formTitleBox {
  width: 57.29%;
}

#loginTitle {
  font-weight: bold;
  text-align: left;
  font-size: clamp(1.6rem, 2.25vw, 2.5rem);
  margin: 0px;
}

#loginSubtitle {
  font-size: clamp(0.7rem, 1vw, 1.15rem);
  color: #838383;
  margin: 15px 0px 5.55vh 0px;
}

#containerAlignment {
  display: flex;
  flex-direction: row;
}

#loginContainer {
  width: 50vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#loginForm {
  width: 57.29%;
}

.loginInput {
  margin-bottom: 1.2vh;
  background-color: var(--light-gray);
  border: 2px solid var(--black);
  color: var(--black);
  transition: all 400ms ease;
}

.loginInput:focus,
.loginInput:valid {
  background-color: var(--light-gray);
  border: 2px solid var(--border-gray);
  color: var(--mid-gray);
}

#loginSubmitButton {
  margin-top: 4vh;
  background-color: var(--mid-green);
  color: var(--white);
  border: none;
  padding: 0px;
  transition: all 0.3s ease;
  cursor: pointer;
}

#loginSubmitButton:hover {
  opacity: 0.8;
}

.loginInput,
#loginSubmitButton {
  width: 100%;
  box-sizing: border-box;
  font-size: 18px;
  height: 6.48vh;
  border-radius: 10px;
}

.loginInput::placeholder {
  color: var(--black);
}

#illustrationContainer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#colorBox {
  position: relative;
  width: 50vw;
  height: 100vh;
  background-color: var(--light-green);
}

#leafIcon {
  position: absolute;
  width: 34.37vw;
  height: auto;
}

/*Form Field Icon Style*/

.inputContainer .inputIcon {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 24px;
  height: 24px;
}

.inputIcon.username {
  background-image: url("../icons/username-icon.png");
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.inputIcon.password {
  background-image: url("../icons/password-icon.png");
}

.inputContainer {
  position: relative;
}

.inputContainer .inputIcon {
  position: absolute;
  left: 18px;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
}

.loginInput {
  padding-left: 54px;
}

/* 
************************************
02. Media Screen Tablet 
************************************
*/

@media screen and (max-width: 1024px) {
  /*Login Form Tablet*/

  #loginContainer {
    width: 100vw;
  }

  #loginForm {
    width: 60%;
  }

  #illustrationContainer {
    display: none;
  }

  #containerAlignment {
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
  }

  #formTitleBox {
    width: 60%;
  }

  #loginTitle {
    font-size: clamp(1.4rem, 4.1vw, 4.2rem);
  }

  #loginSubtitle {
    font-size: clamp(0.65rem, 1.84vw, 1.9rem);
  }
}

/* 
************************************
03. Media Screen Phone
************************************
*/

@media screen and (max-width: 480px) {
  html,
  body {
    overflow-y: hidden;
    position: fixed;
    height: 100vh;
    width: 100vw;
  }

  /*Login Form Phone*/

  #loginContainer {
    margin-bottom: 10vh;
  }

  #formTitleBox {
    width: 100%;
  }

  #loginTitle {
    font-size: clamp(1.2rem, 6.6vw, 1.8rem);
  }

  #loginSubtitle {
    font-size: clamp(0.6rem, 3.4vw, 1.6rem);
  }

  #loginContainer {
    width: 80vw;
  }

  #loginForm {
    width: 100%;
  }

  .loginInput,
  #loginSubmitButton {
    height: 8vh;
  }
}
