/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset + font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Wrapper takes full screen and centers content */
.auth-n-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4070f4;
}

/* Container */
.auth-n-wrapper .container {
  position: relative;
  max-width: 430px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 0 20px;
}

/* Forms wrapper */
.auth-n-wrapper .container .forms {
  display: flex;
  align-items: center;
  height: 440px;
  width: 200%;
  transition: height 0.2s ease;
}

/* Each form */
.auth-n-wrapper .container .form {
  width: 50%;
  padding: 30px;
  background-color: #fff;
  transition: margin-left 0.18s ease;
}

/* Login -> slide out */
.auth-n-wrapper .container.active .login {
  margin-left: -50%;
  opacity: 0;
  transition: margin-left 0.18s ease, opacity 0.15s ease;
}

/* Signup hidden by default */
.auth-n-wrapper .container .signup {
  opacity: 0;
  transition: opacity 0.09s ease;
}

/* Signup visible when active */
.auth-n-wrapper .container.active .signup {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Container height expands */
.auth-n-wrapper .container.active .forms {
  height: 600px;
}

/* Titles */
.auth-n-wrapper .container .form .title {
  position: relative;
  font-size: 27px;
  font-weight: 600;
}

.auth-n-wrapper .form .title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 30px;
  background-color: #4070f4;
  border-radius: 25px;
}

/* Input fields */
.auth-n-wrapper .form .input-field {
  position: relative;
  height: 50px;
  width: 100%;
  margin-top: 30px;
}

.auth-n-wrapper .input-field input {
  position: absolute;
  height: 100%;
  width: 100%;
  padding: 0 35px;
  border: none;
  outline: none;
  font-size: 16px;
  border-bottom: 2px solid #ccc;
  border-top: 2px solid transparent;
  transition: all 0.2s ease;
}

.auth-n-wrapper .input-field input:is(:focus, :valid) {
  border-bottom-color: #4070f4;
}

.auth-n-wrapper .input-field i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 23px;
  transition: all 0.2s ease;
}

.auth-n-wrapper .input-field input:is(:focus, :valid) ~ i {
  color: #4070f4;
}

.auth-n-wrapper .input-field i.icon {
  left: 0;
}

.auth-n-wrapper .input-field i.showHidePw {
  right: 0;
  cursor: pointer;
  padding: 10px;
}

/* Checkbox + text */
.auth-n-wrapper .form .checkbox-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.auth-n-wrapper .checkbox-text .checkbox-content {
  display: flex;
  align-items: center;
}

.auth-n-wrapper .checkbox-content input {
  margin-right: 10px;
  accent-color: #4070f4;
}

/* Links + text */
.auth-n-wrapper .form .text {
  color: #333;
  font-size: 14px;
}

.auth-n-wrapper .form a.text {
  color: #4070f4;
  text-decoration: none;
}

.auth-n-wrapper .form a:hover {
  text-decoration: underline;
}

/* Button */
.auth-n-wrapper .form .button {
  margin-top: 35px;
}

.auth-n-wrapper .form .button input {
  border: none;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 6px;
  background-color: #4070f4;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-n-wrapper .button input:hover {
  background-color: #265df2;
}

/* Login/signup switch */
.auth-n-wrapper .form .login-signup {
  margin-top: 30px;
  text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .auth-n-wrapper .container {
    padding: 20px;
    border-radius: 8px;
  }
  .auth-n-wrapper .form .title {
    font-size: 22px;
  }
}
