:root {
  --purple-dark: #2D1B69;
  --purple-light: #1E1B4B;
  --purple-accent: #9333EA;
  --pink-accent: #EC4899;
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --bg-dark: #1A1A2E;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --google-blue: #4285F4;
  --outlook-blue: #0078d4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Grid pattern background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

/* Purple gradient overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-light) 100%);
  opacity: 0.7;
  z-index: 1;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  height: 60px;
}

.nav-content {
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brain-icon-small {
  width: 20px;
  height: 20px;
  color: var(--purple-accent);
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: bold;
  background: linear-gradient(to right, var(--purple-accent), var(--pink-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Main Content */
.container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  min-height: calc(100vh - 60px - 300px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* Hero Section */
.hero {
  flex: 1;
  padding-right: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.brain-icon {
  width: 36px;
  height: 36px;
  color: var(--purple-accent);
}

.logo h1 {
  font-size: 2rem;
  background: linear-gradient(to right, var(--purple-accent), var(--pink-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.hero h2 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Floating Elements */
.floating-elements {
  position: relative;
  height: 12rem;
}

.float-card {
  position: absolute;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  animation: float 6s ease-in-out infinite;
}

.float-1 {
  top: 0;
  left: 0;
}

.float-2 {
  bottom: 0;
  right: 0;
  animation-delay: -3s;
}

.circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.circle.purple {
  background: var(--purple-accent);
}

.circle.pink {
  background: var(--pink-accent);
}

.line {
  height: 0.375rem;
  border-radius: 0.25rem;
  margin-bottom: 0.375rem;
}

.line-1 {
  width: 6rem;
  background: rgba(147, 51, 234, 0.5);
}

.line-2 {
  width: 4.5rem;
  background: rgba(236, 72, 153, 0.5);
}

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

/* Auth Container */
.auth-container {
  width: 400px;
  padding: 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
}

.auth-container h2 {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.input-group {
  position: relative;
  margin-bottom: 0.75rem;
}

.input-group .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-secondary);
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 0.375rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
}

.input-group select {
  cursor: pointer;
}

.input-group select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

.input-group input:focus,
.input-group select:focus {
  box-shadow: 0 0 0 2px var(--purple-accent);
}

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

/* Social Sign In Buttons */
.social-signin {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  color: white;
}

.social-icon {
  width: 20px;
  height: 20px;
}

.google-button {
  background-color: white;
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.google-button:hover {
  background-color: #f8f8f8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.outlook-button {
  background-color: white;
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.outlook-button:hover {
  background-color: #f8f8f8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* OR Divider */
.or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.5rem 0;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--glass-border);
}

.or-divider span {
  padding: 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Custom Alert Dialog */
.alert-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.alert-dialog {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.alert-dialog h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.alert-dialog p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.alert-dialog button {
  width: auto;
  min-width: 120px;
  margin: 0 auto;
}

/* Form validation styles */
.input-group.error input,
.input-group.error select {
  border: 1px solid #ef4444;
  box-shadow: 0 0 0 1px #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.input-group.error .error-message {
  display: block;
}

button {
  width: 100%;
  padding: 0.625rem;
  background: linear-gradient(to right, var(--purple-accent), var(--pink-accent));
  border: none;
  border-radius: 0.375rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

button:hover {
  opacity: 0.9;
}

/* Footer Styles */
.footer {
  position: relative;
  z-index: 2;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, var(--purple-accent), var(--pink-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-section p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  color: var(--purple-accent);
}

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid var(--glass-border);
  border-radius: 50%;
  border-top-color: var(--purple-accent);
  animation: spin 1s linear infinite;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    padding: 6rem 1.5rem 3rem;
    gap: 2.5rem;
    align-items: center;
  }

  .hero {
    padding-right: 0;
    text-align: center;
  }

  .logo {
    justify-content: center;
  }

  .floating-elements {
    display: none;
  }

  .auth-container {
    width: 100%;
    max-width: 400px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h2 {
    font-size: 2.25rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 5rem 1rem 2rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .auth-container {
    padding: 1.5rem;
  }
}