/* Basic modern auth UI styles for NOXAI */
:root {
  --bg: #0b0f1a;
  --card: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --danger: #ef4444;
  --success: #10b981;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(99,102,241,0.15), transparent 60%),
              radial-gradient(1000px 700px at 110% 10%, rgba(139,92,246,0.12), transparent 60%),
              var(--bg);
  background-attachment: fixed;
}

.auth-container {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  position: relative;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  pointer-events: none;
  background: radial-gradient(800px 400px at 10% -10%, rgba(99,102,241,0.25), transparent 60%),
              radial-gradient(600px 300px at 110% 10%, rgba(139,92,246,0.2), transparent 60%);
  filter: blur(12px);
  opacity: 0.35;
}

.auth-header { text-align: center; margin-bottom: 20px; }
.logo { width: 64px; height: 64px; border-radius: 12px; margin-bottom: 10px; }
.auth-header h1 { margin: 8px 0 6px; font-size: 24px; }
.auth-header p { margin: 0; color: var(--muted); }

.auth-form-content { display: grid; gap: 14px; }
.form-group { display: grid; gap: 6px; }
label { font-size: 14px; color: var(--muted); }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(2,6,23,0.6);
  color: var(--text);
  outline: none;
}
input:focus { border-color: rgba(99,102,241,0.7); box-shadow: 0 0 0 3px rgba(99,102,241,0.2); }
input::placeholder { color: rgba(148,163,184,0.6); }
small { color: var(--muted); }

.btn-primary {
  margin-top: 6px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 24px rgba(99,102,241,0.35); }
.btn-primary:active { transform: translateY(1px); }

.auth-separator { display: grid; place-items: center; margin: 12px 0; color: var(--muted); }
.auth-separator span { position: relative; padding: 0 10px; }
.auth-separator span::before, .auth-separator span::after {
  content: ""; position: absolute; top: 50%; width: 80px; height: 1px; background: rgba(148,163,184,0.2);
}
.auth-separator span::before { right: 100%; }
.auth-separator span::after { left: 100%; }

.btn-google {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(2,6,23,0.6);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  cursor: pointer;
}
.btn-google:hover { border-color: rgba(148,163,184,0.4); background: rgba(2,6,23,0.7); }

.auth-footer { text-align: center; margin-top: 10px; color: var(--muted); }
.auth-footer a { color: #a5b4fc; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.25);
  font-size: 14px;
}
.auth-message.success { border-color: rgba(16,185,129,0.5); color: #d1fae5; background: rgba(16,185,129,0.12); }
.auth-message.error { border-color: rgba(239,68,68,0.5); color: #fee2e2; background: rgba(239,68,68,0.12); }

.loading-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); z-index: 9999; }
.loading-spinner { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Subtle animated stars */
.auth-container {
  position: relative;
}
.auth-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.18), transparent 40%),
                    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,0.12), transparent 40%),
                    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.10), transparent 40%);
  animation: twinkle 5s linear infinite;
  pointer-events: none;
  opacity: .5;
}
@keyframes twinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: .6; }
}
