:root {
  --gold-1: #ffe082;
  --gold-2: #ffb52d;
  --gold-3: #e18800;
  --purple-1: #180726;
  --purple-2: #2b0d46;
  --purple-3: #4f1591;
  --text: #fff0cf;
  --field-border: rgba(255, 209, 112, 0.24);
  --login-art: url('assets/login-art.png');
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Poppins', sans-serif;
  background: #12041f;
  color: var(--text);
}
body { overflow-x: hidden; }

.page-bg,
.page-overlay,
.particles {
  position: fixed;
  inset: 0;
}

.page-bg {
  background: var(--login-art) center center / cover no-repeat;
  transform: scale(1.08);
  filter: blur(8px) brightness(.34) saturate(1.05);
}

.page-overlay {
  background:
    linear-gradient(90deg, rgba(11, 3, 18, 0.88), rgba(25, 7, 41, 0.64) 32%, rgba(25, 7, 41, 0.64) 68%, rgba(11, 3, 18, 0.88)),
    radial-gradient(circle at 50% 10%, rgba(255, 203, 90, 0.12), transparent 16%),
    radial-gradient(circle at 15% 80%, rgba(103, 39, 181, 0.24), transparent 18%),
    radial-gradient(circle at 85% 18%, rgba(255, 132, 0, 0.15), transparent 16%);
}

.particles {
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 223, 146, 0.55) 0 1.8px, transparent 2.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(255, 149, 0, 0.24) 0 2.2px, transparent 3px);
  background-size: 180px 180px, 120px 120px, 260px 260px;
  opacity: .32;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
}

.admin-card {
  position: relative;
  width: min(100%, 620px);
  padding: 22px 42px 36px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(40, 11, 67, 0.88), rgba(18, 7, 29, 0.94)),
    rgba(20, 7, 31, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 24px 80px rgba(0,0,0,.42),
    inset 0 0 0 1px rgba(255,214,121,.05),
    inset 0 0 100px rgba(255, 149, 0, 0.04);
}

.line {
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,210,120,0.05), rgba(255,177,42,0.92), rgba(255,210,120,0.03));
  box-shadow: 0 0 18px rgba(255,177,42,.45);
}
.line.left { left: 16px; }
.line.right { right: 16px; }

.hero-banner {
  width: 100%;
  max-width: 520px;
  height: clamp(230px, 32vw, 320px);
  margin: 0 auto 12px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 30px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,214,121,.05);
  background:
    linear-gradient(180deg, rgba(12, 4, 24, 0.12), rgba(12, 4, 24, 0.34)),
    var(--login-art) center center / cover no-repeat;
}

.badge-wrap {
  width: 230px;
  margin: 2px auto 6px;
}

.admin-badge {
  width: 100%;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.42));
}

.brand-text {
  text-align: center;
  margin-top: 4px;
  color: #ffd767;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 6px;
  text-shadow: 0 3px 0 rgba(74, 34, 0, 0.45), 0 8px 18px rgba(0,0,0,.42);
}

h1 {
  margin: 8px 0 4px;
  text-align: center;
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffc85d;
  text-shadow: 0 3px 0 rgba(74, 34, 0, 0.45), 0 8px 18px rgba(0,0,0,.42);
}

.subtitle {
  margin: 0 0 24px;
  text-align: center;
  font-size: 17px;
  color: rgba(255, 239, 203, 0.9);
}


.login-form { display: grid; gap: 16px; }
.field {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(14, 8, 22, 0.96), rgba(18, 10, 28, 0.92));
  border: 1px solid var(--field-border);
  border-radius: 16px;
}

.icon,
.eye-btn {
  width: 30px;
  min-width: 30px;
  display: grid;
  place-items: center;
}

.icon svg,
.eye-btn svg {
  width: 28px;
  height: 28px;
  fill: rgba(255,255,255,.98);
}
.eye-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 19px;
  font-weight: 500;
}
.field input::placeholder { color: rgba(255,236,194,.9); }

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,236,194,.92);
}
.remember-row input { position: absolute; opacity: 0; pointer-events: none; }

.remember-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffd86d 0%, #ffb72a 50%, #d07c00 100%);
  position: relative;
  box-shadow: 0 4px 10px rgba(255, 166, 0, 0.22);
}
.remember-box::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  width: 7px;
  height: 12px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(40deg);
}

.login-btn {
  height: 76px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #431f00;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 52%, var(--gold-3) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 24px rgba(0,0,0,.25);
}

@media (max-width: 640px) {
  .page { padding: 14px; }
  .admin-card { padding: 20px 22px 26px; }
  .hero-banner { height: 200px; border-radius: 18px; background-position: center top; }
  .badge-wrap { width: 180px; }
  .brand-text { font-size: 20px; letter-spacing: 4px; }
}
