/* =========================
   GLOBAL
   ========================= */
* {
  box-sizing: border-box;
  font-family: 'Rubik', sans-serif;
}

body {
  margin: 0;
  background: #f5f1eb;
}

/* =========================
   LAYOUT
   ========================= */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
}

/* LEFT */
.auth-left {
  flex: 1;
  background: #eae6df;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.overlay {
  max-width: 300px;
}

.overlay h1 {
  margin-bottom: 10px;
}

.overlay p {
  color: #555;
}

/* RIGHT */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.form-box {
  width: 100%;
  max-width: 400px;
}

/* =========================
   FORM
   ========================= */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

/* INPUT */
.input-group input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
  transition: 0.2s;
}

/* FOCUS */
.input-group input:focus {
  border-color: #2b2b2b;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* FLOAT LABEL */
.input-group label {
  position: absolute;
  left: 12px;
  top: 14px;
  background: #fff;
  padding: 0 5px;
  color: #777;
  font-size: 13px;
  transition: 0.2s;
  pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: -8px;
  font-size: 11px;
  color: #000;
}

/* =========================
   PASSWORD TOGGLE
   ========================= */
.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* =========================
   BUTTON
   ========================= */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #2b2b2b;
  color: #fff;
  cursor: pointer;
}

.btn:hover {
  background: #000;
}

/* =========================
   FOOTER
   ========================= */
.footer {
  margin-top: 15px;
  font-size: 14px;
}

.footer a {
  color: #2b2b2b;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}


/* =========================
   STRENGTH FIX
   ========================= */
.strength {
  height: 6px;
  background: #eee;
  border-radius: 10px;

  margin-top: 5px;      /* 🔥 FIX dari minus */
  margin-bottom: 8px;

  overflow: hidden;
}

.strength .bar {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: 0.3s ease;
}
/* SUBTITLE */
.subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

/* PIN SECTION */
.pin-section {
  margin-top: 10px;
  margin-bottom: 10px;
}

.pin-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #888;
}
/* text */
#strengthText {
  font-size: 12px;
  color: #777;
  display: block;
  margin-bottom: 10px;
}
/* =========================
   TOAST MODERN
   ========================= */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* TOAST BOX */
.toast {
  min-width: 260px;
  max-width: 320px;

  padding: 14px 16px;
  border-radius: 12px;

  color: #fff;
  font-size: 14px;

  display: flex;
  align-items: center;
  gap: 10px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.1);

  transform: translateX(120%);
  opacity: 0;

  animation: slideIn 0.4s forwards;
}

/* SUCCESS */
.toast.success {
  background: #2e7d32;
}

/* ERROR */
.toast.error {
  background: #d32f2f;
}

/* ICON */
.toast-icon {
  font-size: 18px;
}

/* CLOSE BTN */
.toast-close {
  margin-left: auto;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.8;
}

.toast-close:hover {
  opacity: 1;
}

/* ANIMATION */
@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}
/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
  .auth-wrapper {
    flex-direction: column;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 20px;
  }
}