:root {
  --bg-dark: #07070d;
  --text: #ecedf3;
  --text-muted: #8b8da3;
  --neon-purple: #8b5cf6;
  --neon-pink: #ec4899;
  --neon-cyan: #22d3ee;
  --neon-green: #22d39a;
  --grad-1: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
}

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.login-page h1,
.login-page h2,
.login-page h3,
.login-page h4,
.login-page h5,
.login-page h6,
.login-page .display-font {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.bg-shapes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float 16s ease-in-out infinite;
}

.blob-1 {
  width: 520px;
  height: 520px;
  background: var(--neon-purple);
  top: -180px;
  left: -120px;
}

.blob-2 {
  width: 460px;
  height: 460px;
  background: var(--neon-pink);
  bottom: -140px;
  right: -100px;
  animation-delay: -5s;
}

.blob-3 {
  width: 380px;
  height: 380px;
  background: var(--neon-cyan);
  top: 40%;
  right: 30%;
  opacity: 0.22;
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -40px) scale(1.1);
  }
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.6;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 15, 28, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 38px 34px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(139, 92, 246, 0.18);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(236, 72, 153, 0.5), rgba(34, 211, 238, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-1);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.5);
}

.brand-logo img {
  max-width: 28px;
  max-height: 28px;
}

.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
}

.login-head {
  text-align: center;
  margin-bottom: 28px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 154, 0.12);
  color: var(--neon-green);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(34, 211, 154, 0.3);
  margin-bottom: 14px;
}

.login-head h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
}

.login-head .grad {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-head p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.field {
  margin-bottom: 18px;
}

.float-group {
  position: relative;
}

.float-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

.float-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 14px 8px 42px;
  color: var(--text);
  font-size: 14px;
}

.float-group input::placeholder {
  color: transparent;
}

.float-group label {
  position: absolute;
  top: 16px;
  left: 42px;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.22s ease;
}

.float-group input:focus,
.float-group input:not(:placeholder-shown) {
  outline: none;
}

.float-group input:focus + label,
.float-group input:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-purple);
}

.float-group input:focus {
  border-color: var(--neon-purple);
  background: rgba(139, 92, 246, 0.07);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
}

.row-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.neon-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.neon-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.neon-check .box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
}

.neon-check .box i {
  opacity: 0;
  font-size: 11px;
  color: #fff;
}

.neon-check input:checked + .box {
  background: var(--grad-1);
  border-color: transparent;
}

.neon-check input:checked + .box i {
  opacity: 1;
}

.btn-neon {
  width: 100%;
  background: var(--grad-1);
  border: none;
  color: #fff;
  padding: 13px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.45);
}

.btn-neon:hover {
  color: #fff;
}

.footer-tip {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
