/* Design System */
:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette - Elegant Dark Violet & Blue theme */
  --bg-primary: #0a0813;
  --bg-secondary: #120e25;
  --accent-glow: linear-gradient(135deg, #7c3aed, #2563eb);
  --accent-glow-hover: linear-gradient(135deg, #8b5cf6, #3b82f6);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --glass-bg: rgba(18, 14, 37, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(124, 58, 237, 0.5);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 16px;
  --radius-md: 12px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Orbs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}

body::before {
  background: #7c3aed;
  top: 10%;
  left: 15%;
  animation: orbFloat 12s infinite alternate ease-in-out;
}

body::after {
  background: #2563eb;
  bottom: 10%;
  right: 15%;
  animation: orbFloat 16s infinite alternate-reverse ease-in-out;
}

@keyframes orbFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.1); }
}

/* Container */
.container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

/* Glassmorphism Card */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-glow), 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Logo / Header */
.header {
  margin-bottom: 32px;
}

.logo-container {
  width: 64px;
  height: 64px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 4px;
}

.input-wrapper {
  position: relative;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: var(--transition-smooth);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus {
  border-color: var(--glass-border-focus);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
}

/* Link Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  cursor: pointer;
  accent-color: #7c3aed;
}

.forgot-password {
  color: #a78bfa;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.forgot-password:hover {
  color: #c084fc;
  text-decoration: underline;
}

/* Button */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--accent-glow);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
  background: var(--accent-glow-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

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

/* Footer Links */
.footer-text {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.signup-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.signup-link:hover {
  color: #c084fc;
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(18, 14, 37, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}

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

.toast-icon {
  color: #10b981;
}
