:root {
  --bg:#000000;
  --surface:#111111;
  --surface2:#1a1a1a;
  --border:rgba(255,255,255,0.08);
  --border2:rgba(255,255,255,0.14);
  --accent:#ffffff;
  --text:#ffffff;
  --text2:#e0e0e0;
  --muted:#888888;
  --font-mono:'IBM Plex Mono', monospace;
  --font-display:'Space Grotesk', sans-serif;
  --radius:4px;
  --radius2:8px;
}

body.auth-page {
  min-height:100vh;
  padding:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  position:relative;
  overflow:hidden;
}

.auth-shell {
  width:min(100%, 560px);
  padding:120px 24px 80px;
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  z-index:2;
}

.auth-card {
  width:100%;
  max-width:420px;
  background:rgba(0,0,0,0.78);
  border:1px solid var(--border2);
  border-radius:var(--radius2);
  padding:28px;
  box-shadow:0 20px 80px rgba(0,0,0,0.35);
  backdrop-filter:blur(24px);
}

.auth-intro h1 {
  font-family:var(--font-display);
  font-size:clamp(28px,4vw,40px);
  margin:8px 0 10px;
  line-height:1.05;
}

.auth-intro h1 span { color:var(--accent); }
.auth-intro p { color:var(--text2); margin-bottom:24px; line-height:1.7; }
.auth-form { display:flex; flex-direction:column; gap:16px; }
.auth-field { display:flex; flex-direction:column; gap:8px; color:var(--text2); font-size:13px; }
.auth-field input {
  width:100%;
  background:var(--surface);
  border:1px solid var(--border2);
  color:var(--text);
  border-radius:var(--radius);
  padding:14px 16px;
  font-size:15px;
  outline:none;
}
.auth-field input:focus { border-color:var(--accent); }
.auth-submit { margin-top:8px; width:100%; justify-content:center; display:inline-flex; align-items:center; }
.auth-switch { margin-top:16px; color:var(--muted); font-size:13px; }
.auth-switch a { color:var(--accent); }
.auth-message { margin-top:14px; font-size:13px; min-height:20px; }
.auth-message.info { color:var(--text2); }
.auth-message.success { color:#8cff9d; }
.auth-message.error { color:#ff8e8e; }

 
.auth-remember {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.remember-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: var(--text2);
  font-size: 13px;
}

.remember-checkbox input {
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.remember-checkbox:hover .checkmark {
  border-color: var(--accent);
}

.remember-checkbox input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.remember-checkbox input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

 
.dot-pattern{
  display:none;
}

.page-grid{
  display:block;
  height:100vh;
}

.auth-glow{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:800px;
  height:600px;
  background:radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.18) 0%, transparent 55%);
  filter:blur(100px);
  mix-blend-mode:screen;
  animation:pulseGlow 6s ease-in-out infinite;
  pointer-events:none;
  z-index:1;
}

.embers.auth{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:100vh;
  pointer-events:none;
  z-index:0;
}

 
.auth-shell{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0;
}

@media (max-width: 640px) {
  .auth-card {
    padding:20px;
    max-width:320px;
  }
  .auth-glow{
    width:300px;
    height:200px;
  }
}
