* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  background-color: #d4c4b0;
  border-radius: 24px;
  padding: 20px;
  width: 100%;
  max-width: 950px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.login-form {
  flex: 1;
  background-color: #d4c4b0;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.logo {
  margin-bottom: 30px;
}

.logo img {
  width: 140px;
  display: block;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-input {
  width: 100%;
  padding: 14px 18px; /* wider + taller */
  border: none;
  border-radius: 8px;
  background-color: #f5f5f5;
  font-size: 15px;
  color: #333;
}

.form-input::placeholder {
  color: #777;
}

.forgot-password {
  display: block;
  text-align: right;
  margin-top: 6px;
  font-size: 13px;
  color: #0645ad;
  text-decoration: none;
}

.login-btn {
  background-color: #000;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin: 20px 0;
  letter-spacing: 1px;
}

.signup-link-container {
  font-size: 14px;
  margin-bottom: 12px;
  color: #333;
}

.signup-link {
  color: #4285f4;
  text-decoration: none;
  font-weight: 500;
}

.divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: #666;
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #999;
  margin: 0 12px;
}

.social-login {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 18px;
  margin-top: 12px;
  width: 100%; /* matches input width */
  max-width: 100%;
}

.social-login-title {
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px; /* icons closer */
}

.social-icon {
  width: 30px; /* bigger icons */
  height: 30px;
  cursor: pointer;
}

/* Right-side Image */
.login-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.error-box {
  background-color: #ffdddd;
  color: #d8000c;
  border: 1px solid #d8000c;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}

/* Responsive */
@media (max-width: 850px) {
  .login-container {
    flex-direction: column;
    max-width: 500px;
  }
  .login-image {
    height: 220px;
  }
}

/* Extra styling for Google button */
.google-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}
.google-login:hover {
  background: #f7f7f7;
}
.google-login svg {
  width: 24px;
  height: 24px;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-form { animation: fadeInUp 0.6s ease-out; }
