/* ====== WARNA UTAMA LOGIN SESUAI FIGMA ====== */

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(90deg, #FEF5D7 0%, #F0DABC 100%);
  color: #512810;
  overflow-x: hidden;
}

/* ====== LOGIN PAGE STYLES ====== */

.login-page {
  background: linear-gradient(90deg, #FEF5D7 0%, #F0DABC 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* header navigasi */
.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(81, 40, 16, 0.1);
  position: relative;
  z-index: 100;
}

/* logo di header */
.logo-container {
  width: 120px;
  height: auto;
}

.header-logo {
  width: 100%;
  height: auto;
  display: block;
}

/* navigasi menu */
.nav-menu {
  display: flex;
  gap: 80px;
  align-items: center;
  flex: 1;
  justify-content: center;
  transform: translateX(350px) !important;
}

.nav-link {
  text-decoration: none;
  color: #512810;
  font-size: 24px;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #784019;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #784019;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* tombol login di header */
.nav-login-link {
  color: #512810;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  padding: 8px 0;
  border-bottom: 3px solid #512810;
  transition: all 0.3s ease;
}

.nav-login-link:hover {
  color: #784019;
  border-bottom-color: #784019;
}

.nav-login-link.active {
  color: #512810;
  border-bottom-color: #512810;
}

/* Sembunyikan gambar background agar warna Figma terlihat jelas */
.login-background {
  display: none;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* container utama login */
.login-container {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 40px 20px;
}

/* kartu login */
.login-card {
  background: white;
  border-radius: 40px;
  padding: 60px 50px;
  box-shadow: 0 20px 60px rgba(81, 40, 16, 0.15);
  max-width: 600px;
  width: 100%;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* judul login */
.login-title {
  text-align: center;
  font-size: 55px;
  font-weight: 700;
  color: #512810;
  margin: 0 0 40px 0;
  font-family: "Poppins", sans-serif;
}

/* form login */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* input group */
.input-group {
  width: 100%;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #512810;
  border-radius: 100px;
  padding: 10px 25px;
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: #784019;
  box-shadow: 0 0 0 3px rgba(120, 64, 25, 0.1);
  background: #fafaf8;
}

.input-icon {
  width: 20px;
  height: 20px;
  color: #512810;
  margin-right: 15px;
  flex-shrink: 0;
  stroke: #512810;
  fill: none;
}

.input-field {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 20px;
  font-family: "Poppins", sans-serif;
  color: #512810;
  outline: none;
  padding: 8px 0;
}

.input-field::placeholder {
  color: rgba(0, 0, 0, 0.2);
  font-style: italic;
}

/* tombol toggle password */
.toggle-password {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #512810;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.toggle-password:hover {
  color: #784019;
}

/* icon mata */
.eye-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.eye-open {
  display: none;
}

.eye-closed {
  display: block;
}

.toggle-password.show-password .eye-open {
  display: block;
}

.toggle-password.show-password .eye-closed {
  display: none;
}

/* opsi form: Remember kiri, Forgot kanan rapi */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 10px 0;
  padding: 0 6px;
  font-size: 15px;
}

/* Remember Me tetap kiri */
.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #512810;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  user-select: none;
}

/* Forgot Password tetap kanan tapi tidak keluar card */
.forgot-password {
  margin-left: auto;
  text-align: right;
  text-decoration: none;
  color: #512810;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  transform: none;
}

.remember-me:hover {
  color: #784019;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #512810;
  border-radius: 3px;
}

.checkbox-input:hover {
  accent-color: #784019;
}

/* forgot password link */
.forgot-password {
  text-decoration: none;
  color: #512810;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.forgot-password:hover {
  color: #784019;
}

.forgot-password::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #784019;
  transition: width 0.3s ease;
}

.forgot-password:hover::after {
  width: 100%;
}

/* tombol login */
.login-button {
  background: #98602D;
  color: white;
  border: none;
  border-radius: 100px;
  padding: 16px 40px;
  font-size: 25px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-button:hover {
  background: #5a2e15;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(120, 64, 25, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

/* sign up text */
.signup-text {
  text-align: center;
  color: #512810;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 0;
}

.signup-link {
  text-decoration: none;
  color: #512810;
  font-weight: 400; /* regular, bukan bold */
  transition: all 0.3s ease;
  position: relative;
}

.signup-link:hover {
  color: #784019;
}

.signup-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px; /* garis lebih tipis */
  background: #784019;
  transition: width 0.3s ease;
}

.signup-link:hover::after {
  width: 100%;
}

/* responsive design */
@media (max-width: 768px) {
  .login-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 15px 20px;
  }

  .logo-container {
    width: 80px;
    order: 0;
  }

  .nav-menu {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: auto;
    order: 0;
    gap: 30px !important;
    transform: translateX(40px) !important;
  }

  .nav-link {
    font-size: 11px !important;
  }

  .nav-login-link {
    font-size: 11px;
    order: 0;
  }

  .login-card {
    padding: 40px 30px;
    border-radius: 30px;
  }

  .login-title {
    font-size: 40px;
  }

  .login-form {
    gap: 20px;
  }

  .input-wrapper {
    padding: 12px 20px;
  }

  .input-field {
    font-size: 16px;
  }

  .login-button {
    font-size: 20px;
    min-height: 56px;
    padding: 12px 30px;
  }

  .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 4px;
  }

  .forgot-password {
    margin-left: auto;
    text-align: right;
    transform: none;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 20px 15px;
    min-height: calc(100vh - 150px);
  }

  .login-card {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .login-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .input-wrapper {
    padding: 10px 15px;
  }

  .input-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
  }

  .input-field {
    font-size: 14px;
  }

  .nav-menu {
    gap: 15px !important;
    transform: translateX(20px) !important;
  }

  .nav-link {
    font-size: 10px !important;
  }

  .nav-login-link {
    font-size: 10px;
  }
}

/* ===== HAMBURGER SAJA, DESKTOP TETAP AWAL ===== */

/* desktop: tombol garis tiga sembunyi */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #512810;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
}

/* desktop tetap besar seperti awal */
@media (min-width: 1351px) {
  .logo-container {
    width: 120px !important;
  }
/* navigasi menu */
  .nav-menu {
    display: flex !important;
    gap: 80px !important;
    align-items: center !important;
    flex: 1 !important;
    justify-content: center !important;
    transform: translateX(350px) !important;
  }

  .nav-link {
    font-size: 24px !important;
  }

  .nav-login-link {
    font-size: 24px !important;
    border-bottom: 3px solid #512810 !important;
  }
}

/* layar kecil/tablet: HOME ABOUT CONTACT disembunyikan, muncul garis tiga */
@media (max-width:  1350px) {
  .login-header {
    height: 86px !important;
    padding: 0 32px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
  }

  .logo-container {
    width: 80px !important;
    order: 0 !important;
  }

  .nav-menu {
    display: none !important;
    transform: none !important;
  }

  .menu-toggle {
    display: block !important;
    margin-left: auto;
    margin-right: 24px;
    order: 1;
  }

  .nav-login-link {
    font-size: 18px !important;
    order: 2;
  }

  .nav-menu.is-open {
    display: flex !important;
    position: absolute;
    top: 86px;
    right: 32px;
    flex-direction: column !important;
    gap: 16px !important;
    background: #ffffff;
    padding: 18px 26px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(81, 40, 16, 0.18);
    z-index: 999;
  }

  .nav-menu.is-open .nav-link {
    font-size: 16px !important;
    white-space: nowrap;
  }
}

/* HP kecil */
@media (max-width: 480px) {
  .login-header {
    padding: 0 22px !important;
  }

  .logo-container {
    width: 70px !important;
  }

  .menu-toggle {
    font-size: 28px;
    margin-right: 18px;
  }

  .nav-login-link {
    font-size: 15px !important;
  }

  .nav-menu.is-open {
    right: 20px;
  }
}

/* pesan error password seperti Set New Password */
.error-text {
  margin: 8px 0 0;
  min-height: 20px;
  font-size: 14px;
  color: #c53131;
  font-family: "Poppins", sans-serif;
}

/* kalau tidak ada error, jarak hilang */
.error-text:empty {
  min-height: 0;
  margin: 0;
}

/* =========================================
   GOOGLE AUTHENTICATION
========================================= */

.auth-divider {
  width: 100%;
  margin: 22px 0 18px;

  display: flex;
  align-items: center;
  gap: 14px;

  color: #8a6a58;

  font-size: 13px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";

  height: 1px;
  flex: 1;

  background:
    rgba(81, 40, 16, 0.2);
}

.auth-divider span {
  flex-shrink: 0;
}

.google-button-container {
  width: 100%;
  min-height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.google-button-container > div {
  max-width: 100%;
}

.google-button-container iframe {
  max-width: 100% !important;
}

.google-auth-error,
.signup-form-error {
  min-height: 18px;

  margin-top: 9px;

  color: #d93025;

  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 520px) {
  .auth-divider {
    margin-top: 18px;
    margin-bottom: 15px;
  }

  .google-button-container {
    overflow: hidden;
  }
}