/* login.css — Alpha neural interface login page */

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

:root {
  --accent: #00ffee;
  --accent2: #00ff88;
  --bg: #020408;
  --card-bg: rgba(4, 12, 24, 0.88);
  --border: rgba(0, 255, 238, 0.18);
  --text: #e0f0ff;
  --sub: rgba(160, 220, 255, 0.5);
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: var(--text);
  overflow: hidden;
}

/* Animated background orbs */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00ffee 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #4488ff 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -6s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #aa00ff 0%, transparent 70%);
  top: 40%; left: 55%;
  animation-delay: -12s;
}

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

/* Login card */
.login-card {
  position: relative;
  z-index: 10;
  width: 360px;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(0, 255, 238, 0.06), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-logo svg {
  filter: drop-shadow(0 0 12px rgba(0, 255, 238, 0.5));
}

.login-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.login-sub {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 28px;
}

.login-error {
  background: rgba(255, 60, 80, 0.12);
  border: 1px solid rgba(255, 60, 80, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #ff8090;
  margin-bottom: 16px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form input {
  background: rgba(0, 255, 238, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input::placeholder { color: var(--sub); }

.login-form input:focus {
  border-color: rgba(0, 255, 238, 0.4);
  box-shadow: 0 0 0 2px rgba(0, 255, 238, 0.08);
}

.login-form button {
  margin-top: 6px;
  padding: 13px;
  background: linear-gradient(135deg, rgba(0, 255, 238, 0.15), rgba(0, 255, 136, 0.10));
  border: 1px solid rgba(0, 255, 238, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.login-form button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(0, 255, 238, 0.22), rgba(0, 255, 136, 0.15));
  border-color: rgba(0, 255, 238, 0.5);
}

.login-form button:active:not(:disabled) { transform: scale(0.98); }

.login-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0, 255, 238, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
