/*
  Simple Color Palette:
  - Primary: #2563eb (Blue)
  - Success: #16a34a (Green)
  - Warning: #dc2626 (Red)
  - Text Dark: #1f2937
  - Text Light: #6b7280
  - Background: #ffffff (White)
  - Border: #e5e7eb
*/

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-md: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
  --bg-primary: #1e293b;
  --bg-secondary: #334155;
  --bg-tertiary: #475569;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border-color: #475569;
  --border-light: #334155;
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-md: rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.login-container {
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px var(--shadow);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.login-container h1 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.login-container p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.google-btn {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.google-btn:hover {
  background: var(--bg-tertiary);
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.google-btn img {
  width: 20px;
  height: 20px;
}

.email-login {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.email-login input {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.email-login input:focus {
  outline: none;
  border-color: #2563eb;
}

.email-btn {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.error-message {
  color: #dc2626;
  margin-top: 1rem;
  font-size: 14px;
}

.loading {
  display: none;
  margin-top: 1rem;
}

.loading.active {
  display: block;
}

.dashboard-container {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px var(--shadow);
  max-width: 800px;
  width: 90%;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header h1 {
  color: var(--text-primary);
}

.logout-btn {
  background: #dc2626;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.logout-btn:hover {
  background: #b91c1c;
}

.user-info {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.user-info p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.user-info strong {
  color: var(--text-primary);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    padding: 1rem;
    align-items: flex-start;
  }

  .login-container {
    padding: 2rem 1.5rem;
    max-width: 100%;
    margin-top: 2rem;
  }

  .login-container h1 {
    font-size: 1.5rem;
  }

  .google-btn {
    width: 100%;
    justify-content: center;
  }

  .dashboard-container {
    padding: 1.5rem;
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
    margin: 1rem 0;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .dashboard-header h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .logout-btn {
    width: 100%;
  }

  .user-info {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }

  .login-container {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    margin-top: 1rem;
  }

  .login-container h1 {
    font-size: 1.3rem;
  }

  .login-container p {
    font-size: 14px;
  }

  .google-btn,
  .email-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .dashboard-container {
    padding: 1rem;
    border-radius: 8px;
  }

  .dashboard-header h1 {
    font-size: 1.3rem;
  }

  .user-info {
    padding: 0.75rem;
  }

  .user-info p {
    font-size: 14px;
  }
}
