/* ===== MODERN LOGIN STYLES ===== */

/* Body and Main Layout */
.login-modern-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

/* Animated Background */
.login-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.animated-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 10%;
  right: 20%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Main Container */
.login-main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: slideUp 0.8s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Header Section */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.login-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.logo-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 30px;
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Form Section */
.login-form-container {
  margin-bottom: 24px;
}

/* Modern Input Groups */
.input-group-modern {
  margin-bottom: 24px;
  position: relative;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #667eea;
  font-size: 16px;
  z-index: 3;
  transition: color 0.3s ease;
}

.form-control-modern {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  outline: none;
  color: #1a1a1a;
}

.form-control-modern::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.form-control-modern:focus {
  border-color: #667eea;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.form-control-modern:focus + .input-line {
  transform: scaleX(1);
}

.form-control-modern:focus ~ .input-icon {
  color: #667eea;
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 1px;
}

/* Modern Checkbox */
.remember-me-container {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
}

.modern-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.modern-checkbox input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

.modern-checkbox input:checked ~ .checkmark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
}

.modern-checkbox input:checked ~ .checkmark::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-text {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

/* Modern Login Button */
.btn-login-modern {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-login-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.btn-text {
  transition: opacity 0.3s ease;
}

.btn-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-login-modern.loading .btn-text {
  opacity: 0;
}

.btn-login-modern.loading .btn-loading {
  opacity: 1;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-main {
    padding: 16px;
  }
  
  .login-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .login-logo {
    width: 70px;
    height: 70px;
  }
  
  .form-control-modern {
    padding: 14px 14px 14px 44px;
    font-size: 16px;
  }
  
  .input-icon {
    left: 14px;
    font-size: 14px;
  }
  
  .btn-login-modern {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 20px;
    margin: 10px;
  }
  
  .shape {
    display: none;
  }
}

/* Dark Mode Support */
.dark-version .login-modern-body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.dark-version .login-card {
  background: rgba(17, 28, 68, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dark-version .login-title {
  color: #ffffff;
}

.dark-version .login-subtitle {
  color: #b3b3b3;
}

.dark-version .form-control-modern {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.dark-version .form-control-modern::placeholder {
  color: #888;
}

.dark-version .form-control-modern:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.dark-version .checkmark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-version .checkbox-text {
  color: #b3b3b3;
}

.dark-version .input-icon {
  color: #667eea;
}
.dark-version .card .card-body .form-control, .dark-version .swal2-popup, .dark-version .dropdown .dropdown-menu, .dark-version .kanban-board{
  background: #111C44;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  color: #fff;
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999999;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999999999;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.dark-version h1,.dark-version .iconImagen {
  background: url("../img/iconforblack.png");
}
.iconImagen {
  background: rgba(0, 76, 255, 0.16);
border-radius: 11px;
padding: 2px;
}
.dark-version .card .card-body .form-select, .dark-version .swal2-popup, .dark-version .dropdown .dropdown-menu, .dark-version .kanban-board {
  background-color: #111C44;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  color: #fff;
}
.dark-version .modal-dialog .form-select, .dark-version .swal2-popup, .dark-version .dropdown .dropdown-menu, .dark-version .kanban-board {
  background-color: #111C44;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  color: #fff;
}
.dark-version .blur {
  background-color: rgba(5, 17, 57, 0.69) !important;
}
.LoadCapaBlack {
  position: fixed;
  z-index: 9999999999999;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  filter: alpha(opacity=80);
  background: rgba(0, 0, 0, 0.31);
}

.LoadCapaContenido {
  background: #fff;
  z-index: 9000;
  margin: 260px auto;
  width: 320px;
  height: 161px;
  text-align: center;
  border-radius: 55px 25px 55px 25px;
}

@media (max-width: 575.98px) {
  .mx-auto {
    margin-top: 50px;
  }
}
.AlturaGrid {
  height: 100%;
  max-height: 260px;
  /* background-color: #fff; */
  overflow: auto;
}
.Seleccion{
  background-color: #9fcdff !important;
}
.CursorPointer {
  cursor: pointer;
}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
  padding: 0px 5px;
  line-height: 1.42857143;
  vertical-align: top;
  border-top: 1px solid #ddd;
}
.BordeBlanco{
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.imgUser{
  border-radius: 30px;
  height: 44px;
}

.FondoBlanco{
  background-color: #f4f6f9;
}