/* assets/css/auth-admin.css */
/* Login glass / liquid style */

:root {
  --blue: #1e66ff;
  --blue-soft: #60a5fa;
  --cyan-soft: #22d3ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    Helvetica, sans-serif;
  color: #e5e7eb;

  /* penting buat HP biar nggak kepotong di bawah */
  min-height: 100vh;
  min-height: 100dvh;

  /* background halus dari atas ke bawah, no garis aneh */
  background: radial-gradient(
      circle at 0% 0%,
      rgba(96, 165, 250, 0.45),
      transparent 55%
    ),
    radial-gradient(
      circle at 50% 120%,
      rgba(37, 99, 235, 0.9),
      rgba(15, 23, 42, 1) 70%
    );
}

/* Layout utama */
.auth-wrap {
  position: relative;
  z-index: 1;

  min-height: 100vh;
  min-height: 100dvh;

  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

/* Blob blur background (liquid) */
.auth-wrap::before,
.auth-wrap::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.9;
  pointer-events: none;
}

.auth-wrap::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--blue-soft),
    var(--cyan-soft)
  );
  top: -120px;
  left: -80px;
  animation: blobFloat1 16s ease-in-out infinite alternate;
}

.auth-wrap::after {
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle at 70% 70%,
    rgba(30, 64, 175, 0.95),
    rgba(59, 130, 246, 0.6)
  );
  bottom: -160px;
  right: -120px;
  animation: blobFloat2 20s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(60px, 40px, 0) scale(1.12);
  }
}

@keyframes blobFloat2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-80px, -60px, 0) scale(1.18);
  }
}

/* Kartu login (glass) */
.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 24px;
  border-radius: 22px;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.22),
    rgba(15, 23, 42, 0.9)
  );
  background-clip: padding-box;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  transform: perspective(900px) translateY(0);
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(0.21, 0.61, 0.35, 1),
    box-shadow 220ms ease-out, border-color 220ms ease-out;
  animation: cardPopIn 420ms cubic-bezier(0.21, 0.61, 0.35, 1) both;
  will-change: transform;
}

/* garis highlight tipis di atas kartu */
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 1px solid rgba(248, 250, 252, 0.4);
  opacity: 0.7;
  pointer-events: none;
}

@keyframes cardPopIn {
  from {
    opacity: 0;
    transform: perspective(900px) translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: perspective(900px) translateY(0) scale(1);
  }
}

/* Logo & judul */
.auth-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  margin: 4px auto 10px;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.7));
}

.auth-title {
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  color: #f9fafb;
  margin-bottom: 4px;
  line-height: 1.3;
}

.auth-subtitle {
  text-align: center;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.78);
  margin-bottom: 18px;
}

/* Flash message */
.alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.alert-danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.8);
  color: #fecaca;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.8);
  color: #bbf7d0;
}

/* Form */
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.9);
  margin: 0 0 6px;
}

.form-control {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  font-size: 14px;
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out,
    background 0.18s ease-out, transform 0.08s ease-out;
}

.form-control::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.form-control:focus {
  border-color: rgba(96, 165, 250, 0.95);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.75),
    0 0 0 8px rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

.mb-3 {
  margin-bottom: 12px;
}
.mb-4 {
  margin-bottom: 18px;
}

/* Tombol */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 0 0, #60a5fa, #1d4ed8);
  color: #f9fafb;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.55),
    0 0 0 1px rgba(191, 219, 254, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 120ms ease-out, box-shadow 140ms ease-out,
    filter 120ms ease-out;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0 0,
    rgba(255, 255, 255, 0.24),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.75),
    0 0 0 1px rgba(191, 219, 254, 0.4);
  filter: brightness(1.03);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.55),
    0 0 0 1px rgba(191, 219, 254, 0.4);
}

/* Input group password */
.input-groupish {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  cursor: pointer;
  user-select: none;
  font-size: 17px;
  transition: transform 120ms ease-out, opacity 120ms ease-out;
}

.password-toggle:hover {
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

/* Footer kecil + link by 0x5zen */
.auth-meta {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
  text-align: center;
  line-height: 1.7;
}

.auth-meta a {
  color: rgba(191, 219, 254, 0.98);
  font-weight: 600;
  text-decoration: none;
}

.auth-meta a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Responsif */
@media (max-width: 480px) {
  .auth-card {
    padding: 22px 18px 18px;
    border-radius: 20px;
  }
  .auth-title {
    font-size: 20px;
  }
  .auth-wrap::before,
  .auth-wrap::after {
    filter: blur(50px);
  }
}
