:root {
  --primary-green: #4CAF50;
  --light-green: #E8F5E9;
  --dark-green: #388E3C;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #333333;
  --medium-gray: #757575;
  --error-red: #E53935;
  --gold: #D4AF37;
  --dark-blue: #285b3b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--light-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" stroke="%23D4AF37" stroke-width="0.5" x="0" y="0" width="100" height="100"/></svg>');
}

.login-wrapper {
  display: flex;
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.brand-section {
  flex: 1;
  background: linear-gradient(135deg, var(--dark-blue) 0%, #2C3E50 100%);
  color: white;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23D4AF37" opacity="0.1" d="M20,20 L80,20 L80,80 L20,80 Z M30,30 L70,30 L70,70 L30,70 Z"/></svg>');
  background-size: 150px;
  opacity: 0.1;
}

.brand-logo {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.brand-logo i {
  font-size: 32px;
  color: var(--gold);
  margin-right: 12px;
}

.brand-logo h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
}

.brand-tagline {
  font-size: 16px;
  margin-bottom: 25px;
  color: #E0E0E0;
  line-height: 1.6;
}

.brand-features {
  list-style: none;
  margin-top: 20px;
}

.brand-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.brand-features i {
  color: var(--gold);
  margin-right: 12px;
  font-size: 18px;
}

.login-container {
  flex: 1;
  background-color: var(--white);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-container h2 {
  color: var(--dark-green);
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 28px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.form-group {
  text-align: left;
  margin-bottom: 5px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--dark-gray);
  font-size: 14px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.login-form input.error {
  border-color: var(--error-red);
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: -1px;
  top: 31%;

  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--medium-gray);
  cursor: pointer;
  font-size: 18px;
}

.login-form button {
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.login-form button:hover {
  background-color: var(--dark-green);
}

.error-message {
  color: var(--error-red);
  font-size: 13px;
  margin-top: 5px;
  display: block;
  text-align: left;
}

.google-login {
  margin-bottom: 25px;
}

.google-login a {
  display: inline-block;
  background-color: var(--light-green);
  color: var(--dark-green);
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  width: 100%;
  transition: all 0.3s ease;
  border: 1px solid #C8E6C9;
  text-align: center;
}

.google-login a:hover {
  background-color: #DCF2DC;
}

.forgot-password-link {
  color: var(--medium-gray);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: inline-block;
  margin-bottom: 20px;
}

.forgot-password-link:hover {
  color: var(--dark-green);
  text-decoration: underline;
}

.text-center {
  color: var(--medium-gray);
  font-size: 14px;
  margin-top: 20px;
  text-align: center;
}

.text-center a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.text-center a:hover {
  color: var(--dark-green);
  text-decoration: underline;
}

.login-message {
  color: var(--error-red);
  font-size: 14px;
  margin-top: 15px;
  font-weight: 500;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
    max-width: 450px;
  }

  .brand-section {
    padding: 30px 25px;
    text-align: center;
  }

  .brand-logo {
    justify-content: center;
  }

  .login-container {
    padding: 30px 25px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  .brand-section,
  .login-container {
    padding: 25px 20px;
  }

  .login-container h2 {
    font-size: 24px;
  }
}