/* ========== RESET DASAR ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #c2a8f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* ========== 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 form {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

/* Label untuk input */
.auth-box label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
  margin-top: 10px;
  display: block;
}

/* Input & Select */
.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"],
.auth-box select {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 25px;
  margin-bottom: 15px;
  outline: none;
  transition: border-color 0.2s ease-in-out;
  width: 100%;
}

.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%;
  margin-bottom: 15px;
}

.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';
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 65%; /* ✅ ini penting */
}



/* ========== INLINE LABEL + NOTE ========== */
.label-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 5px;
}

.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 ========== */
#notif {
  color: red;
  text-align: center;
  margin: 10px 0 20px 0;
  font-size: 14px;
  transition: opacity 0.3s ease-in-out;
}

/* ========== LINK DALAM FORM (seperti lupa password) ========== */
.auth-box form a {
  font-size: 13px;
  color: #7c3aed;
  text-decoration: none;
  margin: 5px 0 10px;
  display: inline-block;
}

.auth-box form a: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 ========== */
.auth-box button {
  padding: 12px;
  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;
}

/* ========== RESPONSIVE EXTRA ========== */
@media (max-width: 400px) {
  .auth-box {
    margin: 20px;
    box-shadow: none;
  }
}

