:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --radius: 0.75rem;
  --background: oklch(0.98 0.005 264); /* Light grey background */
  --foreground: oklch(0.15 0.01 264);
  
  /* Card */
  --card: oklch(1 0 0);
  --card-foreground: var(--foreground);
  --card-border: oklch(0.93 0.005 264);

  /* Primary Button */
  --primary: oklch(0.45 0.23 265); /* Vibrant purple/blue */
  --primary-foreground: oklch(0.98 0.005 264);
  --primary-hover: oklch(0.5 0.23 265);
  
  /* Muted */
  --muted-foreground: oklch(0.45 0.01 264);

  /* Destructive */
  --destructive: oklch(0.6 0.22 15); /* Softer red */

  /* Input */
  --input-background: oklch(0.96 0.005 264);
  --input-border: oklch(0.9 0.005 264);
  --input-focus-border: var(--primary);
}

/* Basic reset */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Card container */
.card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.card-header {
  margin-bottom: 2rem;
}

.card-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

.card-header p {
  color: var(--muted-foreground);
  margin: 0.25rem 0 0;
}

/* Input fields */
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--input-border);
  background: var(--input-background);
  color: var(--foreground);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px oklch(from var(--primary) l / 15%);
}

/* Buttons */
button {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

button:active {
    transform: scale(0.98);
}

button.primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
button.primary:hover {
  background: var(--primary-hover);
}

/* Google button */
button.google {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--input-border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
button.google:hover {
    background-color: var(--input-background);
}

/* Divider */
.divider {
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  text-align: center;
  position: relative;
}
.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: var(--card-border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

/* Links */
p.footer-link {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

p.footer-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
p.footer-link a:hover {
  text-decoration: underline;
}

/* Error message */
.error-message {
  color: var(--destructive);
  background-color: oklch(from var(--destructive) l / 10%);
  border: 1px solid oklch(from var(--destructive) l / 20%);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  text-align: left;
  display: none; /* Hidden by default */
}

/* Modern Benefits Layout */
.benefits-list {
  max-width: 800px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.benefit-icon {
  flex-shrink: 0;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.benefit-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-light);
}

@media (max-width: 640px) {
  .benefit-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

