:root {
  --primary-bg: #0f0e17;
  --accent: #a855f7;
  --accent2: #8b5cf6;
  --accent3: #ec4899;
  --text-main: #faf9fc;
  --text-secondary: #c4b5fd;
  --card-bg: rgba(26, 22, 37, 0.85);
  --input-bg: #1f1b2e;
  --border-radius: 20px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 20px 60px rgba(168, 85, 247, 0.15);
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--primary-bg);
  color: var(--text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before, body::after {
  content: '';
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
}

body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation: float1 20s ease-in-out infinite;
}

body::after {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle at center, var(--accent3) 0%, transparent 70%);
  bottom: -300px;
  right: -200px;
  animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, -50px) scale(1.1); }
  66% { transform: translate(-50px, 50px) scale(0.9); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-100px, 50px) scale(0.9); }
  66% { transform: translate(50px, -100px) scale(1.1); }
}

#particles-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.login-content {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--accent), #fff 50%, var(--accent2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
  margin-bottom: 16px;
  user-select: none;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { filter: brightness(1) drop-shadow(0 0 20px rgba(168, 85, 247, 0.5)); }
  100% { filter: brightness(1.2) drop-shadow(0 0 40px rgba(168, 85, 247, 0.8)); }
}

.typewriter {
  min-height: 40px;
  font-size: 1.25rem;
  text-align: center;
  font-weight: 600;
  margin-bottom: 40px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px;
  width: 100%;
  border: 1px solid rgba(168, 85, 247, 0.1);
  animation: cardEntry 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes cardEntry {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.big-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.subtitle span {
  color: var(--accent);
  font-weight: 500;
}

.login-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.login-btn.google {
  background: #fff;
  color: #1f1b2e;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.login-btn.email {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.or-line {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 8px 0;
}

.or-line span:first-child,
.or-line span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-secondary), transparent);
}

.email-input {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 1rem;
  padding: 0 20px;
  font-weight: 500;
  transition: all 0.3s;
  outline: none;
}

.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
  background: rgba(31, 27, 46, 0.8);
}

.email-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.tiny-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
}

.tiny-text a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.tiny-text a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.learn-more {
  margin-top: 40px;
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 24px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.learn-more:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.learn-more .arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s;
}

.learn-more:hover .arrow {
  transform: translateY(3px);
}

@media (max-width: 600px) {
  .logo { font-size: 2.5rem; }
  .typewriter { font-size: 1.1rem; }
  .card { padding: 28px 20px; }
  .big-title { font-size: 1.3rem; }
  .subtitle { font-size: 0.95rem; }
  .login-btn { min-height: 48px; }
}
