/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BODY ================= */
body {
  font-family: 'Rubik', sans-serif;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #fff;
}

/* ================= WRAPPER ================= */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ================= CARD ================= */
.auth-card {
  width: 100%;
  max-width: 380px;

  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);

  padding: 34px 26px;
  border-radius: 18px;

  text-align: center;

  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

/* ================= LOGO ================= */
.logo {
  font-size: 36px;
  margin-bottom: 12px;
}

/* ================= TITLE ================= */
.auth-card h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.auth-card p {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}

/* ================= EMAIL BOX (OTP PAGE) ================= */
.email-box {
  background: #020617;
  border: 1px solid #334155;

  padding: 10px 12px;
  border-radius: 10px;

  font-size: 13px;
  color: #e2e8f0;

  margin-bottom: 18px;

  word-break: break-word;
}

/* ================= INPUT ================= */
.auth-card input {
  width: 100%;
  padding: 13px 14px;

  border-radius: 10px;
  border: 1px solid #374151;

  background: #1e293b;
  color: #fff;

  font-size: 14px;
  text-align: center; /* 🔥 cocok untuk OTP */

  transition: 0.2s;
}

/* focus */
.auth-card input:focus {
  border-color: #3b82f6;
  background: #0f172a;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* ================= BUTTON ================= */
.auth-card button {
  width: 100%;
  margin-top: 14px;

  padding: 13px;
  border-radius: 10px;
  border: none;

  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;

  font-weight: 500;
  font-size: 14px;

  cursor: pointer;
  transition: 0.2s;
}

/* hover */
.auth-card button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* disabled */
.auth-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ================= HINT ================= */
.hint {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

/* ================= TOAST ================= */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: #111827;
  color: #fff;

  padding: 12px 16px;
  margin-bottom: 10px;

  border-radius: 10px;
  min-width: 220px;

  font-size: 13px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.3);

  animation: slideIn 0.3s ease;
}

/* success */
.toast.success {
  background: #10b981;
}

/* error */
.toast.error {
  background: #ef4444;
}

/* ================= ANIMATION ================= */
@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {

  .auth-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .auth-card h2 {
    font-size: 20px;
  }

  .auth-card input {
    padding: 12px;
    font-size: 13px;
  }

  .auth-card button {
    padding: 12px;
    font-size: 13px;
  }

  .email-box {
    font-size: 12px;
  }
}

/* ================= SMALL DEVICE ================= */
@media (max-width: 360px) {

  .auth-card {
    padding: 20px 14px;
  }

  .auth-card h2 {
    font-size: 18px;
  }
}