/* Login Page Styles */
:root {
  --primary-color: #2c4e2c;
  --primary-hover: #1e3a1e;
  --text-color: #2d3748;
  --text-light: #718096;
  --border-color: #e2e8f0;
  --error-color: #e53e3e;
  --google-blue: #4285f4;
  --google-blue-hover: #357abd;
}

/* Base Styles */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 2rem;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 0 auto;
}

/* Login Card */
.login-card {
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-family: "Hind", sans-serif;
}

.login-header p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

/* Login Content */
.login-content {
  margin-bottom: 1.5rem;
}

/* Alert Messages */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.alert-error {
  background-color: #fff5f5;
  color: var(--error-color);
  border: 1px solid #fed7d7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-hover);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-google {
  background-color: white;
  color: #4a5568;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.btn-google:hover {
  background-color: #f8fafc;
  border-color: #cbd5e0;
  transform: translateY(-1px);
}

.btn-google .btn-icon {
  margin-right: 10px;
}

.btn-microsoft {
  background-color: white;
  color: #4a5568;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.btn-microsoft:hover {
  background-color: #f8fafc;
  border-color: #cbd5e0;
  transform: translateY(-1px);
}

.btn-microsoft .btn-icon {
  margin-right: 10px;
}

/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.login-divider span {
  padding: 0 1rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95rem;
}

.forgot-password {
  color: var(--primary-color);
  font-size: 0.85rem;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 78, 44, 0.1);
}

/* Login Footer */
.login-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.95rem;
}

.signup-link {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
}

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

/* Illustration Side */
.login-illustration {
  flex: 1;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary-color);
}

.login-illustration img {
  max-width: 80%;
  height: auto;
  margin-bottom: 2rem;
}

.login-illustration h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  font-family: "Hind", sans-serif;
}

.login-illustration p {
  color: #4a6a4a;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-page {
    padding: 1rem;
  }

  .login-container {
    width: 100%;
    max-width: 100%;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }

  .login-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  animation: fadeIn 0.5s ease-out;
}
