/* ====== Gaya utama halaman Forget Password ====== */

:root {
  font-family: "Poppins", sans-serif;
  color: #512810;
  background: #f9f1e6;
}

* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.forget-password-page {
  background: linear-gradient(180deg, #f9f1e6 0%, #f3e0cc 45%, #eee0d5 100%);
  min-height: 100vh;  
  display: flex;
  flex-direction: column;
}

/* Header atas dengan logo */
.forget-header {
  height: 95px;
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 0 100px;
}

.forget-logo-link {
  display: inline-flex;
  align-items: center;
}

.forget-logo {
  max-width: 140px;
  width: auto;
  height: auto;
}

/* Konten halaman */
.forget-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px 80px;
}

.forget-card {
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border-radius: 40px;
  padding: 60px 50px;
  box-shadow: 0 20px 60px rgba(81, 40, 16, 0.15);
}

.forget-title {
  text-align: center;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #512810;
}

.illustration-wrapper {
  margin: 26px auto 18px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.forget-illustration {
  width: 240px;
  max-width: 100%;
  height: auto;
}

.forget-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #5f3a22;
  font-weight: 500;
}

.forget-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forget-input {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #512810;
  border-radius: 100px;
  padding: 10px 25px;
  transition: all 0.3s ease;
}

.forget-input:focus {
  border-color: #98602d;
  box-shadow: 0 0 0 4px rgba(152, 96, 45, 0.12);
}

.input-message {
  margin: 0;
  font-size: 14px;
  min-height: 20px;
  text-align: left;
}

.forget-button {
  width: 100%;
  min-height: 48px;
  background: #98602d;
  border: none;
  border-radius: 20px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.forget-button:hover {
  background: #7c4c24;
  transform: translateY(-1px);
}

.forget-button:active {
  transform: translateY(0);
}

/* Pesan error / sukses */
.message-error {
  color: #c53131;
}

.message-success {
  color: #2d7a31;
}

/* Responsif untuk layar kecil */
@media (max-width: 680px) {
  .forget-header {
    padding: 0 24px;
  }

  .forget-card {
    margin-top: 20px;
    border-radius: 18px;
    padding: 28px 22px 30px;
  }
}

@media (max-width: 480px) {
  .forget-header {
    justify-content: center;
  }

  .forget-logo {
    max-width: 120px;
  }

  .forget-title {
    font-size: 24px;
  }

  .forget-labels {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
/* ===== INPUT EMAIL DAN TOMBOL SEND CODE MENIRU SIGN UP ===== */

.forget-labels {
  display: block !important;
  margin-bottom: 10px !important;
  font-size: 15px !important;
  color: #512810 !important;
  font-weight: 600 !important;
}

.forget-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 25px !important;
}

.forget-input {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 2px solid #512810 !important;
  border-radius: 100px !important;
  padding: 10px 25px !important;
  transition: all 0.3s ease !important;
}

.forget-input:focus-within {
  border-color: #784019 !important;
  box-shadow: 0 0 0 3px rgba(120, 64, 25, 0.1) !important;
  background: #fafaf8 !important;
}

.forget-input input,
.forget-field {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  font-size: 20px !important;
  font-family: "Poppins", sans-serif !important;
  color: #512810 !important;
  outline: none !important;
  padding: 8px 0 !important;
  min-width: 0 !important;
}

.forget-input input::placeholder,
.forget-field::placeholder {
  color: rgba(0, 0, 0, 0.25) !important;
}

.forget-button {
  width: 100% !important;
  border: none !important;
  border-radius: 100px !important;
  background: #98602D !important;
  color: #ffffff !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  min-height: 56px !important;
  cursor: pointer !important;
  margin-top: 10px !important;
}

.forget-button:hover {
  background: #5a2e15 !important;
}

/* ===== HEADER FORGET PASSWORD MENIRU SIGN UP ===== */

.forget-header {
  height: 86px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: #ffffff !important;
  padding: 0 60px !important;
  border-bottom: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

.forget-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.forget-logo {
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  display: block !important;
}

/* laptop kecil / tablet */
@media (max-width: 1350px) {
  .forget-header {
    height: 86px !important;
    padding: 0 32px !important;
    justify-content: flex-start !important;
  }

  .forget-logo {
    width: 80px !important;
    max-width: 80px !important;
  }
}

/* HP kecil */
@media (max-width: 480px) {
  .forget-header {
    height: 86px !important;
    padding: 0 22px !important;
    justify-content: flex-start !important;
  }

  .forget-logo {
    width: 70px !important;
    max-width: 70px !important;
  }
}

/* ===== FIX INPUT DAN JARAK TOMBOL FORGET PASSWORD ===== */

/* form dibuat lebih dekat */
.forget-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* input email dibuat sama tinggi seperti Sign Up */
.forget-input {
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  border: 2px solid #512810 !important;
  border-radius: 100px !important;
  background: #ffffff !important;
  padding: 10px 25px !important;

  font-family: "Poppins", sans-serif !important;
  font-size: 20px !important;
  color: #512810 !important;
  outline: none !important;
}

/* placeholder input */
.forget-input::placeholder {
  color: rgba(0, 0, 0, 0.25) !important;
}

/* efek saat input diklik */
.forget-input:focus {
  border-color: #784019 !important;
  box-shadow: 0 0 0 3px rgba(120, 64, 25, 0.1) !important;
  background: #fafaf8 !important;
}

/* pesan kosong jangan bikin jarak jauh */
.input-message {
  margin: 0 !important;
  min-height: 0 !important;
  font-size: 14px !important;
}

/* kalau pesan kosong, hilangkan ruangnya */
.input-message:empty {
  display: none !important;
}

/* tombol SEND CODE dibuat dekat dengan input */
.forget-button {
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  border: none !important;
  border-radius: 100px !important;
  background: #98602D !important;
  color: #ffffff !important;

  font-family: "Poppins", sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;

  cursor: pointer !important;
  margin-top: 8px !important;
}

.forget-button:hover {
  background: #5a2e15 !important;
}

/* tablet */
@media (max-width: 768px) {
  .forget-input {
    height: 58px !important;
    min-height: 58px !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .forget-button {
    height: 58px !important;
    min-height: 58px !important;
    font-size: 18px !important;
  }
}

/* HP kecil */
@media (max-width: 480px) {
  .forget-input {
    height: 52px !important;
    min-height: 52px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
  }

  .forget-button {
    height: 52px !important;
    min-height: 52px !important;
    font-size: 16px !important;
  }
}

/* ====== FIX FINAL FORGET PASSWORD: HEADER DAN BACKGROUND SAMA USERNAME ====== */

/* Warna dasar utama sesuai Login, Sign Up, Username */
:root {
  font-family: "Poppins", sans-serif !important;
  color: #512810 !important;
  background: #FEF5D7 !important;
}

/* Body utama background kiri ke kanan seperti Figma */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100% !important;
  background: linear-gradient(90deg, #FEF5D7 0%, #F0DABC 100%) !important;
  overflow-x: hidden !important;
}

/* Body halaman Forget Password */
body.forget-password-page {
  background: linear-gradient(90deg, #FEF5D7 0%, #F0DABC 100%) !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  color: #512810 !important;
  font-family: "Poppins", sans-serif !important;
}

/* Header putih atas dibuat sama seperti Username Created */
.forget-header {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 20px 60px !important;
  background: #ffffff !important;
  border-bottom: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  height: auto !important;
}

/* Link logo */
.forget-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

/* Logo dibuat sama seperti Username Created */
.forget-logo {
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* Konten utama ikut background Figma */
.forget-main {
  flex: 1 !important;
  background: linear-gradient(90deg, #FEF5D7 0%, #F0DABC 100%) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 40px 20px 80px !important;
}

/* ====== RESPONSIVE TABLET SAMA USERNAME ====== */
@media (max-width: 900px) {
  .forget-header {
    height: 86px !important;
    padding: 0 32px !important;
  }

  .forget-logo {
    width: 80px !important;
    max-width: 80px !important;
  }
}

/* ====== RESPONSIVE HP SAMA USERNAME ====== */
@media (max-width: 600px) {
  .forget-header {
    height: 86px !important;
    padding: 0 22px !important;
    justify-content: flex-start !important;
  }

  .forget-logo {
    width: 70px !important;
    max-width: 70px !important;
  }

  .forget-main {
    padding: 30px 18px 50px !important;
  }
}
.forget-button:disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}
