:root {
  --bg: #0a0a0b;
  --bg2: #111113;
  --bg3: #18181c;
  --bg4: #1e1e24;
  --border: #2a2a32;
  --border2: #38383f;
  --text: #f0f0f4;
  --text2: #a0a0b0;
  --text3: #6a6a7a;
  --coral: #ff6b47;
  --coral2: #ff8a6b;
  --coral-dim: rgba(255, 107, 71, 0.12);
  --coral-glow: rgba(255, 107, 71, 0.3);
  --red: #f87171;
  --green: #4ade80;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

/* Glow blobs decorativos */
.auth-bg-1, .auth-bg-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}
.auth-bg-1 {
  width: 420px; height: 420px;
  background: var(--coral);
  opacity: 0.15;
  top: -120px; left: -120px;
}
.auth-bg-2 {
  width: 380px; height: 380px;
  background: var(--coral);
  opacity: 0.10;
  bottom: -140px; right: -100px;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 32px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* Brand */
.auth-brand {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.auth-mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--coral-dim);
  color: var(--coral);
  border: 1px solid var(--coral);
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
}
.auth-meta { display: flex; flex-direction: column; gap: 2px; }
.auth-app {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--text);
}
.auth-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.5px;
}

/* Headings */
.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 24px;
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.auth-field input:focus {
  border-color: var(--coral);
  background: var(--bg4);
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--coral);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 18px var(--coral-glow);
}
.auth-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled {
  filter: grayscale(0.4) brightness(0.7);
  cursor: not-allowed;
  transform: none;
}
.auth-submit-arrow { font-size: 16px; }

.auth-error {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--red);
  min-height: 16px;
  letter-spacing: 0.3px;
}

.auth-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.3px;
}
.auth-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 480px) {
  .auth-card { padding: 24px 20px 20px; }
  .auth-title { font-size: 20px; }
}
