/* ==========================
   GOOGLE FONT
========================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* ==========================
   RESET
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================
   BODY
========================== */

body {
  font-family: "Poppins", sans-serif;
  background: #f7f1e8;
  color: #3e3028;
}

/* ==========================
   LOGIN PAGE
========================== */

.login-page {
  min-height: 100vh;

  display: flex;

  overflow: hidden;
}

/* ==========================
   LEFT SIDE
========================== */

.login-container {
  width: 50%;
  min-height: 100vh;

  padding: 40px 70px;

  background: #f7f1e8;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================
   LOGIN CARD
========================== */

.login-card {
  width: 100%;
  max-width: 560px;
}

/* ==========================
   LOGO
========================== */

.logo {
  font-size: 1.7rem;

  font-weight: 700;

  margin-bottom: 22px;

  color: #3e3028;
}

/* ==========================
   HEADER
========================== */

.login-header h1 {
  font-size: 2.3rem;

  margin-bottom: 10px;

  color: #3e3028;
}

.login-header p {
  color: #6f625a;

  font-size: 0.95rem;

  line-height: 1.6;

  margin-bottom: 15px;
}

/* ==========================
   INPUT GROUP
========================== */

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;

  font-size: 0.95rem;

  font-weight: 600;

  margin-bottom: 7px;

  color: #3e3028;
}

.input-group input {
  width: 100%;

  padding: 12px 20px;

  border: 2px solid #e4ddd5;

  border-radius: 14px;

  background: #fffdf9;

  font-family: "Poppins", sans-serif;

  font-size: 0.95rem;

  color: #3e3028;

  outline: none;

  transition: 0.3s;
}

.input-group input:focus {
  border-color: #c58b55;

  box-shadow: 0 0 0 4px rgba(197, 139, 85, 0.15);
}

/* ==========================
   PASSWORD
========================== */

.password-box {
  position: relative;
}

.password-box input {
  padding-right: 55px;
}

.toggle-password {
  position: absolute;

  right: 18px;
  top: 50%;

  transform: translateY(-50%);

  border: none;

  background: transparent;

  cursor: pointer;

  font-size: 1rem;
}

/* ==========================
   LOGIN OPTIONS
========================== */

.login-options {
  display: flex;

  justify-content: space-between;
  align-items: center;

  margin-bottom: 20px;

  font-size: 0.85rem;
}

.remember-me {
  display: flex;

  align-items: center;

  gap: 7px;
}

.login-options a {
  color: #a96f3f;

  font-weight: 600;

  text-decoration: none;
}

/* ==========================
   LOGIN BUTTON
========================== */

.login-btn {
  width: 100%;

  padding: 14px;

  border: none;

  border-radius: 14px;

  background: #c58b55;

  color: white;

  font-family: "Poppins", sans-serif;

  font-size: 0.95rem;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s;
}

.login-btn:hover {
  background: #b87945;

  transform: translateY(-2px);
}

/* ==========================
   REGISTER
========================== */

.register-link {
  text-align: center;

  margin-top: 12px;

  font-size: 0.9rem;

  color: #6f625a;
}

.register-link a {
  color: #a96f3f;

  font-weight: 600;

  text-decoration: none;
}

/* ==========================
   BACK HOME
========================== */

.back-home {
  display: inline-block;

  margin-top: 10px;

  font-size: 0.85rem;

  color: #a96f3f;

  font-weight: 600;

  text-decoration: none;
}

/* ==========================
   RIGHT SIDE
========================== */

.login-image {
  width: 50%;
  min-height: 100vh;

  background: #3e3028;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 35px;
}

/* ==========================
   ILLUSTRATION
========================== */

.login-illustration {
  width: 78%;

  max-width: 520px;

  margin-bottom: 14px;
}

/* ==========================
   ILLUSTRATION TEXT
========================== */

.illustration-text {
  text-align: center;

  max-width: 520px;

  color: white;
}

.illustration-text h2 {
  font-size: 1.9rem;

  margin-bottom: 12px;
}

.illustration-text p {
  font-size: 0.9rem;

  line-height: 1.6;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 900px) {
  .login-page {
    flex-direction: column;

    overflow: visible;
  }

  .login-container,
  .login-image {
    width: 100%;
  }

  .login-container {
    padding: 25px 70px;
  }

  .login-image {
    min-height: 600px;
  }
}

@media (max-width: 480px) {
  .login-page {
    min-height: 100svh;
  }

  .login-container {
    min-height: auto;
    padding: 32px clamp(20px, 6vw, 28px) 36px;
  }

  .login-card {
    max-width: none;
  }

  .logo {
    margin-bottom: 18px;
    font-size: 1.45rem;
  }

  .login-header h1 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 8vw, 2.1rem);
    line-height: 1.2;
  }

  .login-header p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .input-group {
    margin-bottom: 16px;
  }

  .input-group input {
    min-height: 50px;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .password-box input {
    padding-right: 52px;
  }

  .toggle-password {
    right: 6px;
    width: 44px;
    height: 44px;
  }

  .login-options {
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 22px;
    font-size: 0.875rem;
  }

  .remember-me {
    line-height: 1.4;
  }

  .login-btn {
    min-height: 50px;
    padding: 13px 16px;
    font-size: 1rem;
  }

  .register-link {
    margin-top: 16px;
    line-height: 1.5;
  }

  .back-home {
    margin-top: 12px;
    padding: 4px 0;
  }

  .login-image {
    min-height: auto;
    padding: 32px clamp(20px, 6vw, 28px) 36px;
  }

  .login-illustration {
    width: min(72%, 260px);
    margin-bottom: 12px;
  }

  .illustration-text h2 {
    margin-bottom: 8px;
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .illustration-text p {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .login-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}

/* ==========================
   LOGIN MESSAGE
========================== */

/* ==========================
   LOGIN FORM MESSAGE
========================== */

.login-message {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  margin-bottom: 24px;

  padding: 16px 18px;

  background: #f3e2d5;

  border-radius: 14px;

  color: #9b663b;

  font-size: 16px;

  line-height: 1.5;
}
