:root {
  --primary: #2E7D32; /* Verde corporativo */
  --secondary: #FFC107; /* Amarelo corporativo */
  --light: #f5f5f5;
  --dark: #333;
  --gray: #757575;
  --light-gray: #e0e0e0;
  --white: #ffffff;
  --error: #d32f2f;
  --success: #388e3c;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-image: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-left {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #1B5E20 100%);
  color: var(--white);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
}

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

.logo-icon {
  font-size: 2.5rem;
  margin-right: 15px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
}

.welcome-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.welcome-text {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
}

.features-list {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1rem;
}

.feature-icon {
  margin-right: 10px;
  color: var(--secondary);
}

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

.login-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.login-subtitle {
  color: var(--gray);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.input-with-icon {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

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

.checkbox {
  margin-right: 8px;
  accent-color: var(--primary);
}

.forgot-password {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

.login-button {
  width: 100%;
  padding: 14px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-button:hover {
  background-color: #1B5E20;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

.login-button.loading {
  pointer-events: none;
  opacity: 0.8;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

.success-message {
  color: var(--success);
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

.demo-accounts {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
}

.demo-title {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--gray);
}

.demo-account {
  background-color: rgba(46, 125, 50, 0.05);
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.demo-account:hover {
  background-color: rgba(46, 125, 50, 0.1);
}

.demo-account:last-child {
  margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    max-width: 500px;
  }

  .login-left, .login-right {
    padding: 30px;
  }

  .login-left {
    order: 2;
  }

  .login-right {
    order: 1;
  }

  .welcome-title {
    font-size: 1.8rem;
  }
}

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

  .login-left, .login-right {
    padding: 25px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .welcome-title {
    font-size: 1.6rem;
  }

  .login-title {
    font-size: 1.6rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .forgot-password {
    margin-top: 10px;
  }
}

/* Estados de validação */
.form-input.error {
  border-color: var(--error);
}

.form-input.success {
  border-color: var(--success);
}