body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #111827;
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-card {
  display: flex;
  background-color: #2d3748;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin: 1.5rem;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
}

.login-image-section {
  position: relative;
  width: 450px;
  flex-shrink: 0;
}

.login-image-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.login-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-image-overlay {
  position: absolute;
  bottom: 2.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1.5rem;
  color: #ffffff;
}

.login-image-overlay span {
  font-size: 1.25rem;
  line-height: 1.5;
}

.login-form-section {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.login-form-section .home-link {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: none;
  align-self: flex-start;
}

.login-form-section .home-link:hover {
  color: #e5e7eb;
}

.login-form-section h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.login-form-section .form-subtitle {
  color: #9ca3af;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #4a5568;
  border-radius: 0.375rem;
  background-color: #1a202c !important;
  color: #ffffff !important;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.95rem;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

/* --- FIX FOR BROWSER AUTOCOMPLETE --- */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover, 
.form-group input:-webkit-autofill:focus, 
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a202c inset !important;
    -webkit-text-fill-color: #999999 !important;
    transition: background-color 5000s ease-in-out 0s; /* Another trick to delay style changes */
}

.form-group input::placeholder {
  color: #6b7280;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input[type="checkbox"] {
  margin-right: 0.5rem;
  height: 1rem;
  width: 1rem;
}

.forgot-password-link {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
}

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

.submit-button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.submit-button:hover {
  background-color: #1d4ed8;
}

.signup-link-container {
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

.signup-link {
  font-weight: bold;
  color: #3b82f6;
  text-decoration: none;
}

.signup-link:hover {
  text-decoration: underline;
}

.oauth-buttons {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.google-oauth-button {
  background: white;
  color: #757575;
  border: 1px solid #dadce0;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-family: 'Roboto', sans-serif;
}

.google-oauth-button:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.google-oauth-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.google-icon {
  flex-shrink: 0;
}

.google-oauth-button span {
  font-weight: 500;
  color: #3c4043;
}



@media (max-width: 768px) {
  .login-image-section {
    display: none;
  }
  .login-card {
    flex-direction: column;
    margin: 1rem;
    max-width: 100%;
  }
  .login-form-section {
    padding: 2.5rem 1.5rem;
  }
} 