*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #6c63ff;
  --accent2: #00e5ff;
  --accent3: #ff6584;
  --card-bg: rgba(10, 10, 30, 0.55);
  --card-border: rgba(108, 99, 255, 0.25);
  --input-bg: rgba(255,255,255,0.07);
  --input-border: rgba(255,255,255,0.13);
  --input-focus: rgba(108,99,255,0.55);
  --text: #f0f0ff;
  --text-sub: rgba(200,200,230,0.6);
  --btn-bg: linear-gradient(135deg, #6c63ff 0%, #00e5ff 100%);
}

html, body {
  min-height: 100vh;
  font-family: 'Times New Roman', sans-serif;
  overflow: hidden;
}

/* ── BACKGROUND ── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: #060614;
  overflow: hidden;
}

/* Animated grid */
.grid-canvas {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.10) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* Glowing orbs */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.orb1 { width: 500px; height: 500px; background: #6c63ff; top: -120px; left: -120px; animation-duration: 9s; }
.orb2 { width: 400px; height: 400px; background: #00e5ff; bottom: -80px; right: -80px; animation-duration: 11s; animation-delay: -3s; }
.orb3 { width: 300px; height: 300px; background: #ff6584; top: 40%; left: 55%; animation-duration: 13s; animation-delay: -6s; opacity: 0.22; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* Circuit lines SVG overlay */
.circuit { position: absolute; inset: 0; opacity: 0.18; }

/* Floating particles */
.particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%;
  background: var(--accent2);
  animation: particleRise linear infinite;
  opacity: 0;
}
@keyframes particleRise {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.3); }
}

/* Scanline */
.scanline {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,229,255,0.015) 3px,
    rgba(0,229,255,0.015) 4px
  );
}

/* ── PAGE LAYOUT ── */
.page {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
}

/* ── BRAND ── */
.brand {
  display: flex; 
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  animation: fadeDown 0.7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand-name {
  font-family: 'Times New Roman', sans-serif;
  font-size: 32px; font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 30%, #6c63ff 70%, #00e5ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.brand-tag {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-sub); margin-top: 5px; font-weight: 300;
}

/* ── GLASS CARD ── */
.card {
  width: 100%; max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 36px 36px 32px;
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 24px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(108,99,255,0.08);
  animation: cardReveal 0.8s cubic-bezier(.22,1,.36,1) 0.15s both;
  position: relative;
  overflow: hidden;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card top shimmer line */
.card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108,99,255,0.8), rgba(0,229,255,0.6), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.card-title {
  font-family: 'Times New Roman', sans-serif;
  font-size: 22px; font-weight: 700;
  color: #fff; margin-bottom: 4px;
  letter-spacing: -0.4px;
}
.card-sub {
  font-size: 14px; 
  color: var(--text-sub);
  margin-bottom: 28px; 
  font-weight: 300;
}

/* ── INPUTS ── */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px;
  color: rgba(200,200,255,0.55); margin-bottom: 7px;
}
.input-wrap { position: relative; }
.input-wrap .ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(180,180,220,0.45); font-size: 16px; pointer-events: none;
  transition: color 0.2s;
}
.input-wrap input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 13px 14px 13px 42px;
  font-size: 14px; color: #fff;
  font-family: 'Times New Roman', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.2px;
}
.input-wrap input::placeholder { color: rgba(180,180,220,0.35); }
.input-wrap input:focus {
  border-color: rgba(108,99,255,0.7);
  background: rgba(108,99,255,0.08);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.18), 0 0 20px rgba(108,99,255,0.12);
}
.input-wrap input:focus + .focus-line { width: 100%; }
.input-wrap:focus-within .ico { color: rgba(108,99,255,0.85); }

/* Eye toggle */
.eye-btn {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: rgba(180,180,220,0.4); font-size: 16px; padding: 2px;
  transition: color 0.2s;
}
.eye-btn:hover { color: rgba(180,180,220,0.8); }

/* Userid row */
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; margin-bottom: 0; }

.remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-sub); cursor: pointer;
}
.remember input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer; border-radius: 4px;
}
.forgot {
  font-size: 13px; color: rgba(108,99,255,0.85);
  text-decoration: none; transition: color 0.18s;
}
.forgot:hover { color: #00e5ff; }

/* ── BUTTON ── */
.btn-continue {
  width: 100%;
  padding: 14px;
  border: none; border-radius: 13px;
  background: var(--btn-bg);
  color: #fff; 
  font-family: 'Times New Roman', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(108,99,255,0.4), 0 0 40px rgba(0,229,255,0.1);
  margin-top:15px;
}
.btn-continue::before {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite 1.5s;
}
@keyframes btnShine {
  0%   { left: -100%; opacity: 1; }
  60%  { left: 150%; opacity: 1; }
  100% { left: 150%; opacity: 0; }
}
.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.55), 0 0 60px rgba(0,229,255,0.15);
}
.btn-continue:active { transform: scale(0.98); }

.btn-inner { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-arrow { transition: transform 0.2s; }
.btn-continue:hover .btn-arrow { transform: translateX(4px); }


/* ── STATUS TOAST ── */
.toast {
  position: fixed; bottom: 42px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(10,10,30,0.92); border: 2px solid rgba(108,99,255,0.4);
  border-radius: 12px; padding: 12px 22px;
  font-size: 16px; color: #fff;
  backdrop-filter: blur(16px);
  opacity: 0; transition: all 0.3s;
  white-space: nowrap; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(67,197,158,0.5); }
.toast.error   { border-color: rgba(226,75,74,0.5); }