body{
  background-color: #fff;
}
.login.bg-black{
  background-color: #082C55 !important;
}
label.error{
  color: #f00 !important;
}
input.error{
  border: solid 2px #f00 !important;
}
/* Spinner */
.lds-hourglass {
  display: none;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-hourglass:after {
  content: " ";
  display: block;
  border-radius: 50%;
  width: 0;
  height: 0;
  margin: 6px;
  box-sizing: border-box;
  border: 26px solid #00acac;
  border-color: #00acac transparent #00acac transparent;
}
.lds-hourglass.show{
  display: inline-block;
}
.animateSpin{
  animation: lds-hourglass 1.2s infinite;
}
.ribbonDemo{
  display: block;
  font-size: 1.2em !important;
  border: solid 2px #B77F07;
  margin-top: 8px;
}
@keyframes lds-hourglass {
  0% {
    transform: rotate(0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  50% {
    transform: rotate(900deg);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
    transform: rotate(1800deg);
  }
}

img#logoLogin{
  display: block; clear: both;
  width: 200px; 
  margin: 0 auto 20px auto;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
}
.btn{
  border: none;
}
button.btn-success{
  background-color: #067978 !important;
}
button.btn-success:hover{
  background-color: #10AE69 !important;
}





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

:root {

  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
                sans-serif;
  background: #f9fafb;
  color: #111827;
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
}
.text-center{
  text-align: center;
}
.text-grey{
  color:#838383;
}

.login-container {
  display: flex;
  height: 100vh;
  background: white;
}

/* Panel Izquierdo - Imagen */
.login-image {
  flex: 1.8;
  background: linear-gradient(135deg, #0d8350 0%, #04be6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
  background: url(../images/bg_image_login_v1.jpg) no-repeat center center; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.login-image::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
  0% {
      transform: translate(0, 0);
  }
  100% {
      transform: translate(50px, 50px);
  }
}

.login-image-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
}

.login-image-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.login-image-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Logo Circle */
.logo-circle {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 2.5rem;
  backdrop-filter: blur(10px);
}

/* Panel Derecho - Formulario */
.login-form-wrapper {
    flex: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #1f2937;
}

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

.form-header h2 {
    font-size: 1.875rem;
    color: white;  /* ← Cambiar a blanco */
    margin-bottom: 8px;
    font-weight: 700;
}

.form-header p {
    color: rgba(255, 255, 255, 0.9);  /* ← Cambiar a blanco con opacidad */
    font-size: 0.95rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);  /* ← Cambiar a blanco */
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);  /* ← Bordes blancos */
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);  /* ← Fondo inputs semi-transparente */
    color: white;  /* ← Texto blanco */
    font-family: inherit;
    margin-bottom:14px;
}

.form-input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-wrapper label {
    margin-bottom: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);  /* ← Texto blanco */
}

/* Remember Me & Forgot Password */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

hr{
  border:none;
  border-bottom:solid 1px #343434;
  margin: 15px 0;
}
/* Alert Base */
.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

/* Alert Success (Verde) */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Alert Danger (Rojo) */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Submit Button */
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0d8350 0%, #04be6e 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

/* Error Message */
.form-error {
  display: none;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.form-error.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Loading State */
.btn-login.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-login.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .login-image-content h1 {
      font-size: 2rem;
  }

  .login-image-content p {
      font-size: 1rem;
  }
}

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

  .login-image {
      min-height: 250px;
      flex: 0;
  }

  .login-image-content h1 {
      font-size: 1.5rem;
  }

  .login-image-content p {
      font-size: 0.9rem;
  }

  .logo-circle {
      width: 60px;
      height: 60px;
      font-size: 2rem;
  }

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

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

  .form-header h2 {
      font-size: 1.5rem;
  }

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

  .forgot-password {
      display: block;
      text-align: left;
  }
}

@media (max-width: 480px) {
  .login-image-content {
      padding: 20px;
  }

  .login-form-wrapper {
      padding: 20px;
  }

  .form-header h2 {
      font-size: 1.25rem;
  }

  .form-header {
      margin-bottom: 30px;
  }
}

/* Dark Mode (opcional) */
@media (prefers-color-scheme: dark) {
  body {
      background: #111827;
  }

  .login-container {
      background: #1f2937;
  }

  .login-form-wrapper {
      background: #1f2937;
  }

  .form-header h2 {
      color: white;
  }

  .form-input {
      background: #374151;
      border-color: #4b5563;
      color: white;
  }

  .form-input:focus {
      background: #374151;
  }

  .form-group label {
      color: #e5e7eb;
  }

  .checkbox-wrapper label {
      color: #d1d5db;
  }
}