/* ====== WARNA UTAMA SIGN UP SESUAI FIGMA ====== */

body,
html {
  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;
}

* {
  box-sizing: border-box;
}

.signup-page {
  min-height: 100vh;
  background: linear-gradient(90deg, #FEF5D7 0%, #F0DABC 100%);
}

/* ===== BAGIAN HEADER SIGN UP ===== */

.signup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: #ffffff;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.header-logo {
  width: 100%;
  height: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 80px;
  align-items: center;
  flex: 1;
  justify-content: center;
  transform: translateX(350px);
}

.nav-link,
.nav-login-link {
  text-decoration: none;
  color: #512810;
  font-size: 24px;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.nav-link {
  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%;
}

.nav-login-link {
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  font-weight: 700;
}

.nav-login-link.active {
  border-bottom-color: #512810;
}

/* tombol garis tiga default sembunyi */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #512810;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== BAGIAN KONTAINER SIGN UP ===== */

.signup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 40px 20px 80px;
}

.signup-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);
}

.signup-title {
  text-align: center;
  font-size: 55px;
  font-weight: 700;
  color: #512810;
  margin: 0 0 40px 0;
  font-family: "Poppins", sans-serif;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.input-group {
  width: 100%;
}

.input-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  color: #512810;
  font-weight: 600;
}

.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;
  min-width: 0;
}

.input-field::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

/* password dan confirm password dua kolom */
.input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* tombol mata */
.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;
}

.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;
}

/* tombol Google */
.social-button {
  width: 100%;
  min-width: 160px;
  border-radius: 100px;
  font-size: 20px;
  font-weight: 700;
  padding: 14px 22px;
  cursor: pointer;
  border: 1px solid rgba(81, 40, 16, 0.12);
  background: #f7f1e8;
  color: #512810;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.google-icon {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}

/* tombol Create Account */
.primary-button {
  width: 100%;
  border: none;
  border-radius: 100px;
  background: #98602D;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 700;
  min-height: 56px;
  cursor: pointer;
  margin-top: 10px;
}

.primary-button:hover {
  background: #5a2e15;
}

/* teks log in */
.footer-text {
  margin: 24px 0 0;
  font-size: 18px;
  color: #512810;
  text-align: center;
}

.footer-link {
  text-decoration: none;
  color: #512810;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: #784019;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #784019;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* ===== TAMPILAN DESKTOP BESAR ===== */

@media (min-width: 1351px) {
  .logo-container {
    width: 120px !important;
  }

  .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,
  .nav-login-link {
    font-size: 24px !important;
  }

  .nav-login-link.active {
    border-bottom: 3px solid #512810 !important;
  }
}

/* ===== TAMPILAN LAPTOP KECIL / TABLET / HP: HAMBURGER ===== */

@media (max-width: 1350px) {
  .signup-header {
    height: 86px !important;
    padding: 0 32px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: sticky !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;
    white-space: nowrap;
  }

  .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;
    border-bottom: none;
  }
}

/* ===== TAMPILAN TABLET / LAYAR SEDANG ===== */

@media (max-width: 768px) {
  .signup-card {
    padding: 40px 30px;
    border-radius: 30px;
  }

  .signup-title {
    font-size: 40px;
  }

  .signup-form {
    gap: 20px;
  }

  .input-wrapper {
    padding: 12px 20px;
  }

  .input-field {
    font-size: 16px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .primary-button {
    font-size: 18px;
    min-height: 56px;
  }

  .social-button {
    min-width: 105px !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: 14px !important;
  }

  .primary-button {
    min-width: 115px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }

  .google-icon {
    width: 18px !important;
    height: 18px !important;
  }
}

/* ===== TAMPILAN HP KECIL ===== */

@media (max-width: 480px) {
  .signup-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;
  }

  .signup-container {
    padding: 20px 15px 60px;
    min-height: calc(100vh - 150px);
  }

  .signup-card {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .signup-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;
  }

  .footer-text {
    font-size: 16px;
  }
}

/* ===== PERBAIKAN IKON SIGN UP SAMA SEPERTI LOGIN ===== */

.signup-page .input-icon,
.signup-page .eye-icon {
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.signup-page .input-icon {
  color: #512810 !important;
  stroke: #512810 !important;
}

/* pesan error merah di bawah 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;
  }
}