html, body {
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}

/* Multi-layer ambient glow */
body::before {
  content: '';
  position: fixed;
  width: 700px; height: 700px;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(240,62,109,.07) 0%,
    rgba(139,124,248,.04) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  width: 400px; height: 400px;
  bottom: 10%; right: 15%;
  background: radial-gradient(ellipse at center,
    rgba(34,212,232,.04) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Grid texture overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.login-wrap {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fade-up .45s cubic-bezier(.34,1.4,.64,1) both;
  position: relative;
  z-index: 1;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Brand block ─── */
.brand {
  text-align: center;
  padding-bottom: 40px;
}

.brand-eye {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 32px rgba(240,62,109,.35),
              0 0 0 1px rgba(240,62,109,.2);
  animation: icon-pulse 3s ease-in-out infinite;
}
@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(240,62,109,.35), 0 0 0 1px rgba(240,62,109,.2); }
  50% { box-shadow: 0 8px 40px rgba(240,62,109,.55), 0 0 0 1px rgba(240,62,109,.35); }
}

.brand-wordmark {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.brand-name {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 30%, #a893ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-tagline {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Login card ─── */
.login-card {
  background: rgba(17,17,25,.9);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6),
              0 0 0 1px rgba(240,62,109,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--raised);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: all .2s;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--rose);
  background: var(--raised);
  box-shadow: 0 0 0 3px var(--rose-glow), inset 0 1px 0 rgba(255,255,255,.04);
  outline: none;
}
.form-input::placeholder { color: var(--muted); }

.btn-signin {
  width: 100%;
  height: 48px;
  background: var(--brand-grad);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 24px;
  transition: all .2s;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(240,62,109,.3);
}
.btn-signin::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.btn-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(240,62,109,.45);
  filter: brightness(1.06);
}
.btn-signin:active { transform: translateY(0); }
.btn-signin:disabled { opacity: .6; cursor: default; transform: none; }

.error-msg {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(240,80,110,.08);
  border: 1px solid rgba(240,80,110,.2);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--danger);
  text-align: center;
  display: none;
}
.error-msg.show { display: block; }

/* ─── Footer ─── */
.login-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.login-footer span {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border3);
  display: inline-block;
}
