/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #f0f4f8, #e2e8f0);
  color: #2d3748;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem;
  min-height: 100vh;
}

/* Logo header */
.logo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.logo-header img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-header h1 {
  font-size: 2.5rem;
  color: #1a202c;
}

/* Auth card */
#auth-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Form section */
#email-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2b6cb0;
  text-align: center;
}

input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:focus {
  border-color: #3182ce;
  outline: none;
}

/* Primary buttons */
#submit-btn,
#toggle-signup {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#submit-btn {
  background: #3182ce;
  color: white;
  margin-bottom: 0.5rem;
}

#toggle-signup {
  background: #4a5568;
  color: white;
}

#submit-btn:hover {
  background: #2b6cb0;
}

#toggle-signup:hover {
  background: #2d3748;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cbd5e0;
}

.divider span {
  padding: 0 0.75rem;
  font-size: 0.9rem;
  color: #718096;
}

/* Social login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-login button {
  background: #edf2f7;
  color: #2d3748;
  border: 1px solid #cbd5e0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.social-login button:hover {
  background: #e2e8f0;
}

.social-login img {
  width: 20px;
  height: 20px;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  body {
    padding: 2rem 1rem;
  }

  .logo-header h1 {
    font-size: 2rem;
  }

  #auth-card {
    padding: 1.5rem;
  }
}