@import 'reset.css';

:root {
  --button-color: #3692ff;
  --bg-color: #cfe5ff;
  --main-font-color: #374151;
  --secondary-font-color: #e5e7eb;
  --button-hover-color: #1967d6;
  --button-active-color: #1251aa;
  --cool-gray-100: #f3f4f6;
}

@font-face {
  font-family: 'Pretendard';
  src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff')
    format('woff');
  font-weight: 400;
  font-style: normal;
}

body p {
  font-size: 1.6rem;
}

.container {
  display: flex;
  justify-content: center;
}

.content-box {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 64rem;
  height: 85.7rem;
  margin: 6rem 64rem 40.7rem;
}

.header-logo {
  height: 13.2rem;
  margin: 0 auto;
}

.loginLogoImg {
  width: 39.6rem;
  height: 13.2rem;
}

.input-form-container {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  width: 64rem;
  height: 53.9rem;
  gap: 2.4rem;
}

.input-box-container {
  width: 100%;
  height: 9.8rem;
}

.input-box-container label {
  font-size: 1.8rem;
  font-weight: 700;
}

.wrapper-for-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-items: center;
}

.input-box {
  margin-top: 1.6rem;
  width: 100%;
  height: 5.6rem;
  border-radius: 1.2rem;
  padding: 1.6rem 2.4rem;
  font-weight: 400;
  border: 0.1rem solid var(--cool-gray-100);
  background-color: var(--cool-gray-100);
  font-size: 1.6rem;
}

.passwordIcon {
  position: absolute;
  right: 3rem;
  width: 2.4rem;
  height: 2.4rem;
  top: 45%;
  cursor: pointer;
}

.button-container {
  margin-top: 2.4rem;
  height: 5.6rem;
}

.signup-button {
  width: 100%;
  height: 5.6rem;
  padding: 1.6rem 12.4rem;
  border-radius: 4rem;
  background-color: #9ca3af;
  border: 0 solid #9ca3af;
  color: #f3f4f6;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
}

.simple-login-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.4rem;
  height: 7.4rem;
  gap: 1rem;
  background-color: #e6f2ff;
}

.simple-login-content {
  width: 100%;
  height: 4.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.6rem 2.3rem;
}

.simple-login-text {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #1f2937;
  height: 2.4rem;
}

.logo-box {
  display: flex;
  gap: 1.6rem;
}
.logo-box img {
  height: 4.2rem;
}

.register {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.register-navigate {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--button-color);
}

/* 모바일 */
@media (min-width: 375px) and (max-width: 767px) {
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.6rem;
  }

  .content-box {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 100%;
    max-width: 40rem;
    height: 50.1rem;
    margin: 5.1rem auto;
  }

  .header-logo {
    height: 13.2rem;
  }

  .loginLogoImg {
    width: 19.8rem;
    height: 6.6rem;
  }

  .input-form-container {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 53.9rem;
    max-width: 40rem;
    gap: 2.4rem;
  }

  .input-box-container {
    width: 100%;
  }

  .input-box-container label {
    font-size: 1.8rem;
    font-weight: 700;
  }

  .wrapper-for-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-items: center;
  }

  .input-box {
    margin-top: 1.6rem;
    width: 100%;
    height: 5.6rem;
    border-radius: 1.2rem;
    padding: 1.6rem 2.4rem;
    font-weight: 400;
    border: 0.1rem solid var(--cool-gray-100);
    background-color: var(--cool-gray-100);
    font-size: 1.6rem;
  }

  .passwordIcon {
    position: absolute;
    right: 3rem;
    width: 2.4rem;
    height: 2.4rem;
    top: 45%;
    cursor: pointer;
  }

  .button-container {
    margin-top: 2.4rem;
    height: 5.6rem;
  }

  .signup-button {
    width: 100%;
    height: 5.6rem;
    max-width: 40rem;
    padding: 1.6rem;
    border-radius: 4rem;
    background-color: #9ca3af;
    border: 0 solid #9ca3af;
    color: #f3f4f6;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
  }

  .simple-login-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.4rem;
    height: 7.4rem;
    gap: 1rem;
    background-color: #e6f2ff;
    width: 100%;
    max-width: 40rem;
  }

  .simple-login-content {
    width: 100%;
    height: 4.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.6rem 2.3rem;
    border-radius: 0.8rem;
  }

  .simple-login-text {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #1f2937;
    height: 2.4rem;
  }

  .logo-box {
    display: flex;
    gap: 1.6rem;
  }
  .logo-box img {
    height: 4.2rem;
  }

  .register {
    margin-top: 2.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 40rem;
  }

  .register-navigate {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--button-color);
  }
}

.errDiv {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  color: #f74747;
  padding-left: 1.6rem;
}
.input-box.invalid {
  border: 1px solid #f74747;
}

.signup-button.activate {
  background-color: var(--button-color);
}
