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

html,
body {
  height: 100%;
  font-family:
    "Open Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 14px;
}

/* Contenedor principal */
.login-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Columna izquierda - Logo */
.login-left {
  flex: 1;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.logo-wrapper {
  text-align: center;
}

.brand-logo {
  max-width: 600px;
  width: 100%;
  height: auto;
  filter: brightness(1.1);
}

/* Columna derecha - Formulario */
.login-right {
  flex: 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.form-wrapper {
  max-width: 450px;
  width: 100%;
}

.login-title {
  font-size: 24px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 32px;
  text-align: left;
}

/* Formulario */
form {
  width: 100%;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
  color: #333;
  transition: all 200ms ease;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #7a7a7a;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
}

.password-toggle:hover {
  color: #2b2b2b;
}

.password-toggle:focus {
  outline: none;
  color: #2b2b2b;
}

.form-group input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.forgot-link {
  display: block;
  font-size: 13px;
  color: #d4af37;
  text-decoration: none;
  margin-top: 6px;
  transition: color 200ms ease;
}

.forgot-link:hover {
  color: #c8102e;
  text-decoration: underline;
}

/* Botón de login */
.btn-login {
  width: 100%;
  padding: 14px 20px;
  background: #7cb342;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 200ms ease;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  background: #689f38;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
}

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

/* Footer del login */
.login-footer {
  margin-top: 32px;
  font-size: 11px;
  color: #777;
  line-height: 1.6;
}

.login-footer p {
  margin-bottom: 6px;
}

.login-footer a {
  color: #555;
  text-decoration: underline;
  transition: color 200ms ease;
}

.login-footer a:hover {
  color: #c8102e;
}

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

  .login-left {
    flex: 0 0 200px;
    padding: 20px;
  }

  .brand-logo {
    max-width: 180px;
  }

  .login-right {
    flex: 1;
    padding: 30px 20px;
  }

  .login-title {
    font-size: 20px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .login-left {
    flex: 0 0 140px;
  }

  .brand-logo {
    max-width: 120px;
  }

  .form-wrapper {
    padding: 0;
  }

  .login-title {
    font-size: 18px;
  }

  .form-group input {
    padding: 12px 14px;
  }

  .btn-login {
    padding: 12px 18px;
  }
}
