@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  /* THEME: Sophisticated Minimalist (Linear x Apple x Stripe) */
  --bg-deep: #09090b; /* Zinc 950 */
  --bg-surface: #18181b; /* Zinc 900 */
  --bg-surface-hover: #27272a; /* Zinc 800 */
  
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-light: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.15);

  --accent-primary: #f8fafc;
  --accent-blue: #3b82f6;
  
  --text-pure: #ffffff;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-tertiary: #52525b;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* Ambient Radial Mesh Gradients */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
  z-index: -3;
  pointer-events: none;
}

/* Glowing Ambient Spheres */
.glow-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  z-index: -2;
  pointer-events: none;
}

.glow-sphere.c1 {
  top: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-blue) 0%, #1d4ed8 100%);
}

.glow-sphere.c2 {
  bottom: -20%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1 0%, #4f46e5 100%);
}

/* Interactive Cursor Glow */
.interactive-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, rgba(99, 102, 241, 0.01) 70%, transparent 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  transition: width 0.2s ease, height 0.2s ease;
}

/* Auth Container */
.login-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  animation: slideUp 0.8s var(--ease-out-expo);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.nebula-logo-container {
  margin-bottom: 2.25rem;
  text-align: center;
}

.logo-text {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-text i {
  color: var(--accent-blue);
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Main Panel (High-End Glassmorphism) */
.login-panel {
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  width: 100%;
  box-shadow: 
    var(--shadow-lg), 
    var(--shadow-inset),
    0 0 40px rgba(59, 130, 246, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 
    var(--shadow-lg), 
    var(--shadow-inset),
    0 0 60px rgba(59, 130, 246, 0.05);
}

.login-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.login-header h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  gap: 1rem;
  transition: all 0.3s var(--ease-out-expo);
}

.input-group:focus-within {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(9, 9, 11, 0.9);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-group label {
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.input-group:focus-within label {
  color: var(--accent-blue);
}

.input-group input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-pure);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
}

.input-group input::placeholder {
  color: var(--text-tertiary);
}

/* Premium Login Button */
.btn-primary {
  background: var(--text-pure);
  color: var(--bg-deep);
  border: none;
  padding: 0.95rem;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #e4e4e7;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Navigation Links */
.nav-redirect-link {
  text-align: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
  margin-top: 0.75rem;
  display: block;
}

.nav-redirect-link:hover {
  color: var(--text-pure);
  text-decoration: underline;
}

/* Premium Glassmorphic Custom Toast */
.nexus-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(59, 130, 246, 0.05);
  transform: translateY(-30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
  pointer-events: none;
  max-width: 380px;
}

.nexus-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.nexus-toast i {
  font-size: 1.35rem;
}

.nexus-toast.success {
  border-color: rgba(16, 185, 129, 0.2);
}
.nexus-toast.success i {
  color: #10b981;
}

.nexus-toast.error {
  border-color: rgba(244, 63, 94, 0.2);
}
.nexus-toast.error i {
  color: #f43f5e;
}

.nexus-toast span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .login-panel {
    padding: 2.25rem 1.75rem;
    border-radius: 24px;
  }
  .logo-text {
    font-size: 2rem;
  }
}
