/* ═══════════════════════════════════════════════════════════
   NEXUS AUTH — Login & Register pages
   Modern split-screen design with gradient branding panel.
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --bg-page: #0f1115;
  --bg-card: #1c1d21;
  --bg-input: #191a1e;
  --text-primary: #e2e4e8;
  --text-muted: #8a8d93;
  --text-dim: #555860;
  --brand: #0ea5e9;
  --brand-hover: #0284c7;
  --brand-gradient: linear-gradient(135deg, #0ea5e9, #6366f1);
  --danger: #f87171;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: #0ea5e9;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* Background — subtle gradient + animated aurora */
.auth-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(14, 165, 233, 0.12), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(99, 102, 241, 0.10), transparent 50%),
    var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
}
.auth-blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(#0ea5e9, transparent);
  top: -180px; left: -120px;
  animation: floatBlob 9s ease-in-out infinite;
}
.auth-blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(#34d399, transparent);
  bottom: -120px; right: -120px;
  animation: floatBlob 12s ease-in-out infinite reverse;
}
.auth-blob-3 {
  width: 320px; height: 320px;
  background: radial-gradient(#6366f1, transparent);
  top: 40%; right: 18%;
  animation: floatBlob 7s ease-in-out infinite 2s;
}
@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-28px) scale(1.04); }
}

/* Container */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 16px;
}

/* Card */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px 30px;
  width: 100%;
  box-shadow: var(--shadow-card);
  animation: cardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.auth-logo-icon {
  width: 48px; height: 48px;
  background: var(--brand-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}
.auth-logo-text {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.8px;
}

/* Headings */
.auth-card h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #f5f5f5;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Error box */
.auth-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Form */
.auth-form { display: flex; flex-direction: column; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--brand);
  background: #131418;
}
.form-group input::placeholder { color: var(--text-dim); }

/* Button */
.auth-btn {
  width: 100%;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}
.auth-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
}
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Switch link */
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-switch a { color: var(--brand); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 480px) {
  .auth-card { padding: 28px 24px 24px; }
  .auth-logo-text { font-size: 24px; }
  .auth-card h1 { font-size: 21px; }
}
