/* ========== RESET DASAR ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #c2a8f9;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px
}

/* ========== AUTH BOX CONTAINER ========== */
.auth-box {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}

/* ========== HEADER DENGAN GRADASI ========== */
.auth-box .header {
  padding: 20px;
  background: linear-gradient(to right, #7c3aed, #d946ef);
  color: white;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

/* ========== FORM AREA ========== */
.auth-box .auth-text {
  text-align: center;
  font-size: 15px;
}

.auth-box form {
  padding: 25px 25px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Label untuk input */
.auth-box label {
  font-weight: bold;
  font-size: 14px;
  
  
  display: block;
}

/* Input & Select */
.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"],
.auth-box input[type="tel"],
.auth-box select {
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 25px;
  outline: none;
  transition: border-color 0.2s ease-in-out;
  width: 100%;
}

/* ========== PROVINSI AREA ========== */
.auth-box select {
  background-color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
}

.auth-box input:focus,
.auth-box select:focus {
  border-color: #a855f7;
}

/* ========== PASSWORD TOGGLE ========== */
.form-control-password {
  position: relative;
  width: 100%;
  
}

.form-control-password input {
  padding-right: 44px;
  border-radius: 25px;
}

.toggle-eye {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Material Symbols Outlined';
  color: #888;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50%; /* ✅ ini penting */
}



/* ========== INLINE LABEL + NOTE ========== */
.label-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  
}

.label-inline label {
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}

.note-inline {
  font-size: 12px;
  color: #888;
  margin-left: 10px;
  white-space: nowrap;
}

.required {
  color: #e91e63;
}

/* ========== NOTIFIKASI ERROR ========== */
.error {
  color: red;
  text-align: center;
  font-size: 14px;
}

.info {
  color: green;
  text-align: center;
  font-size: 14px;
}

/* ========== LINK DALAM FORM (seperti lupa password) ========== */
.auth-box form a:not(.btn) {
  font-size: 13px;
  color: #7c3aed;
  text-decoration: none;
  
  display: inline-block;
}

.auth-box form a:not(.btn):hover {
  text-decoration: underline;
}


/* ========== FOOTER LOGIN / REGISTER ========== */
.auth-box .footer {
  text-align: center;
  font-size: 14px;
  padding: 15px;
}

.auth-box .footer a {
  text-decoration: none;
  color: #7c3aed;
}


/* ========== BUTTON LOGIN ========== */
.auth-box button {
  height: 44px;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(to right, #7c3aed, #d946ef);
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
}

.auth-box button:hover {
  opacity: 0.95;
}


/* ========== BUTTON BASE (UNTUK <a>) ========== */
.btn {
  display: flex;
  width: 100%;
  height: 44px;
  padding: 0 16px;

  align-items: center;
  justify-content: center;
  gap: 6px;

  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;

  box-sizing: border-box;
}


/* ========== BUTTON OUTLINE (GOOGLE + HOME) ========== */
.btn-outline {
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  
}

/* 🔥 hover = garis */
.btn-outline:hover .label {
  text-decoration: underline;
}


/* ========== ICON FIX ========== */
.btn img {
  width: 18px;
  height: 18px;
  display: block;
}

.btn .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
}


/* ========== RESPONSIVE EXTRA ========== */
@media (max-width: 400px) {
  .auth-box {
    margin: 20px;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
}
