:root {
  --primary-color: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --secondary-color: #689F38;
  --accent-color: #FFC107;
  --accent-hover: #FFB300;
  --background-light: #F5F5F5;
  --background-white: #FFFFFF;
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-light: #9E9E9E;
  --border-color: #E0E0E0;
  --error-color: #D32F2F;
  --success-color: #388E3C;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
  --gradient-accent: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-2%, -2%) rotate(1deg);
  }

  66% {
    transform: translate(2%, 2%) rotate(-1deg);
  }
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 400px;
  min-height: 650px;
  background: var(--background-white);
  border-radius: 32px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  animation: containerAppear 0.8s ease-out;
}

@keyframes containerAppear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-panel {
  width: 100%;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--background-white);
  position: relative;
  min-height: 650px;
}

.login-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.login-header {
  margin-bottom: 40px;
  text-align: center;
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.img-form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.img-form img {
  max-width: 120px;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(46, 125, 50, 0.2));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.login-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.5px;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.forms-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  min-height: 350px;
}

.login-form,
.reset-password-form {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

.login-form {
  opacity: 1;
  transform: translateX(0) scale(1);
  visibility: visible;
  z-index: 2;
}

.reset-password-form {
  opacity: 0;
  transform: translateX(50px) scale(0.95);
  visibility: hidden;
  z-index: 1;
}

.show-reset .login-form {
  opacity: 0;
  transform: translateX(-50px) scale(0.95);
  visibility: hidden;
  z-index: 1;
}

.show-reset .reset-password-form {
  opacity: 1;
  transform: translateX(0) scale(1);
  visibility: visible;
  z-index: 2;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  font-size: 15px;
  transition: var(--transition);
  background-color: var(--background-light);
  color: var(--text-primary);
}

.form-control:hover {
  border-color: var(--primary-light);
  background-color: #FFFFFF;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--background-white);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
  transform: translateY(-1px);
}

.form-control.error {
  border-color: var(--error-color);
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin: 12px 0;
  gap: 8px;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.checkbox-container label {
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.forgot-password {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(46, 125, 50, 0.05);
  border: 1px solid transparent;
}

.forgot-password:hover {
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary-dark);
  transform: translateY(-1px);
  border-color: var(--primary-light);
}

.forgot-password i {
  margin-right: 6px;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  width: 100%;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-top: 16px;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.btn-secondary:active {
  transform: translateY(1px);
}

.form-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 16px;
  background: var(--background-light);
  border-radius: 12px;
  transition: var(--transition);
}

.form-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.form-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: right;
}

.form-footer a:hover {
  color: var(--primary-dark);
}

.form-footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#loading-data-wait {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .login-container {
    max-width: 400px;
    min-height: 600px;
  }

  .login-panel {
    padding: 20px 30px;
    min-height: 600px;
  }

  .login-header h2 {
    font-size: 28px;
  }

  .login-header p {
    font-size: 15px;
  }

  .forms-container {
    min-height: 360px;
  }

  .form-control {
    padding: 14px 16px;
  }

  .btn {
    padding: 14px 24px;
  }

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

@media (max-width: 576px) {
  .login-container {
    max-width: 100%;
    min-height: auto;
    border-radius: 24px;
  }

  .login-panel {
    padding: 20px 20px;
    min-height: auto;
  }

  .img-form img {
    max-width: 100px;
  }

  .login-header h2 {
    font-size: 26px;
  }

  .login-header p {
    font-size: 14px;
  }

  .forms-container {
    min-height: 340px;
  }

  .form-label {
    font-size: 13px;
  }

  .form-control {
    padding: 14px;
    font-size: 14px;
  }

  .btn {
    padding: 14px 20px;
    font-size: 12px;
  }

  .form-footer {
    font-size: 12px;
    padding: 14px;
  }

  .checkbox-container {
    flex-wrap: wrap;
  }

  .forgot-password {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 400px) {
  .login-panel {
    padding: 20px 15px;
  }

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

  .forms-container {
    min-height: 320px;
  }

  .form-control {
    padding: 12px 14px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 12px;
  }

  .form-footer {
    padding: 12px;
  }
}

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}