@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS DESIGN SYSTEM - MODERN LUXURY DARK THEME
   ========================================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette - Facebook Dark Charcoal Style */
  --bg-dark: #18191a;
  --bg-card: rgba(36, 37, 38, 0.92);
  --bg-card-hover: rgba(45, 46, 48, 0.95);
  --bg-input: rgba(58, 59, 60, 0.85);
  --bg-input-focus: rgba(78, 79, 80, 0.95);
  
  --border-color: rgba(255, 255, 255, 0.09);
  --border-color-focus: rgba(99, 102, 241, 0.55);
  
  --text-primary: #e4e6eb;
  --text-secondary: #b0b3b8;
  --text-muted: #8a8d91;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --grad-primary-hover: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  --grad-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --grad-header: linear-gradient(135deg, #1c1d1e 0%, #242526 100%);
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow-primary: 0 0 25px rgba(99, 102, 241, 0.35);
  --shadow-glow-accent: 0 0 25px rgba(6, 182, 212, 0.35);
}

/* Global Reset & Base */
body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(24, 25, 26, 0.7) 0%, transparent 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Main Container Wrapper */
.contenedor-sistema {
  padding-bottom: 3rem;
}

/* Header Titles & Breadcrumbs */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-top: 0.4rem;
}

.breadcrumb-item, .breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #818cf8;
}

.breadcrumb-item.active {
  color: #a5b4fc;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
  content: "›";
}

/* ==========================================================================
   CUSTOM NAVIGATION BAR
   ========================================================================== */

.custom-navbar, .navbar.bg-dark {
  background: rgba(36, 37, 38, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff !important;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar-brand img {
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.5rem 1rem !important;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover, .nav-link.active {
  color: #fff !important;
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.user-profile-badge {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   CUSTOM CARDS & PANELS
   ========================================================================== */

.card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow-md) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card-header {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 1.25rem 1.5rem !important;
}

.card-body {
  padding: 1.5rem !important;
}

/* Hover Dashboard Cards */
.card-hover {
  position: relative;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-accent);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

.border-left-primary::before { background: var(--grad-primary) !important; }
.border-left-success::before { background: var(--grad-success) !important; }
.border-left-info::before { background: var(--grad-accent) !important; }

/* ==========================================================================
   CUSTOM UNIQUE FORM SYSTEM ("Formularios Únicos")
   ========================================================================== */

.form-group {
  margin-bottom: 1.25rem !important;
  position: relative;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.input-group:focus-within {
  border-color: #6366f1;
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.15);
}

.input-group-text {
  background: transparent !important;
  border: none !important;
  color: #818cf8 !important;
  padding: 0.75rem 1rem !important;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-control, select.form-control, textarea.form-control {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  padding: 0.75rem 1rem 0.75rem 0.25rem !important;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  box-shadow: none !important;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

select.form-control option {
  background-color: #0f172a;
  color: var(--text-primary);
  padding: 10px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: inline-block;
  letter-spacing: 0.02em;
}

/* Custom File Upload Styling */
input[type="file"].form-control {
  padding-left: 0.75rem !important;
  color: var(--text-secondary) !important;
}

input[type="file"]::file-selector-button {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(99, 102, 241, 0.4);
  color: #fff;
}

/* ==========================================================================
   CUSTOM BUTTONS
   ========================================================================== */

.btn {
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: 10px !important;
  padding: 0.6rem 1.25rem !important;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none !important;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--grad-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35) !important;
}

.btn-primary:hover {
  background: var(--grad-primary-hover) !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5) !important;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(51, 65, 85, 0.8) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.9) !important;
  color: #fff !important;
}

.btn-success {
  background: var(--grad-success) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-2px);
}

.btn-warning {
  background: var(--grad-warning) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
}

.btn-warning:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45) !important;
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--grad-danger) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45) !important;
  transform: translateY(-2px);
}

.btn-info {
  background: var(--grad-accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3) !important;
}

.btn-info:hover {
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45) !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
}

/* ==========================================================================
   CUSTOM MODALS ("Modales Únicos y Espectaculares")
   ========================================================================== */

.modal-content {
  background: rgba(36, 37, 38, 0.96) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.2) !important;
  overflow: hidden;
}

.modal-header {
  background: var(--grad-header) !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 1.25rem 1.75rem !important;
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-accent);
}

.modal-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
  transition: all 0.2s ease;
}

.modal-header .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.75rem !important;
}

.modal-footer {
  background: rgba(28, 29, 30, 0.8) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 1.25rem 1.75rem !important;
}

/* ==========================================================================
   CUSTOM TABLES & DATATABLES
   ========================================================================== */

.table-responsive {
  border-radius: 12px;
  overflow: hidden;
}

.table {
  width: 100% !important;
  color: var(--text-primary) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin-bottom: 0 !important;
}

.table thead th {
  background: rgba(28, 29, 30, 0.9) !important;
  color: #a5b4fc !important;
  font-size: 0.825rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 1rem !important;
  border-bottom: 2px solid var(--border-color) !important;
  border-top: none !important;
}

.table tbody tr {
  background: transparent;
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08) !important;
}

.table tbody td {
  padding: 0.9rem 1rem !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--border-color) !important;
  border-top: none !important;
  font-size: 0.9rem;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.015);
}

/* DataTables Styling Overrides */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  padding: 0.4rem 0.75rem !important;
  outline: none !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

.dataTables_wrapper .dataTables_info {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  padding-top: 1rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  background: rgba(30, 41, 59, 0.6) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  padding: 0.35rem 0.75rem !important;
  margin: 0 2px !important;
  font-size: 0.85rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--grad-primary) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(99, 102, 241, 0.3) !important;
  color: #fff !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
}

/* Custom Badges */
.badge {
  padding: 0.45em 0.85em;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge.bg-success {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge.bg-danger {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge.bg-warning {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Image Thumbnails */
.img-thumbnail {
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 3px;
}

/* ==========================================================================
   CUSTOM ULTRA-MODERN LOGIN SCREEN
   ========================================================================== */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  z-index: 10;
  overflow: hidden;
}

/* Floating Ambient Lights for Login */
.login-container::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
  top: 15%;
  left: 20%;
  border-radius: 50%;
  animation: pulseGlow 8s infinite alternate ease-in-out;
  pointer-events: none;
}

.login-container::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 15%;
  right: 20%;
  border-radius: 50%;
  animation: pulseGlow 10s infinite alternate-reverse ease-in-out;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.2) translate(30px, -20px); opacity: 0.9; }
}

.login-card-luxury {
  width: 100%;
  max-width: 440px;
  background: rgba(36, 37, 38, 0.94) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  padding: 3rem 2.5rem !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.25) !important;
  position: relative;
  z-index: 20;
  animation: loginAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.login-logo-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-header img {
  max-width: 170px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
  transition: transform 0.3s ease;
}

.login-logo-header img:hover {
  transform: scale(1.05);
}

.login-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}

.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.btn-login-submit {
  width: 100%;
  padding: 0.9rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  background: var(--grad-primary) !important;
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 25px rgba(79, 70, 229, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-top: 1rem;
}

.btn-login-submit:hover {
  background: var(--grad-primary-hover) !important;
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.6) !important;
  transform: translateY(-2px);
}

#fondP {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/fondo-login.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

#fondP::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(24, 25, 26, 0.9);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   MODERN CIRCULAR PRELOADER STYLING
   ========================================================================== */

.reload-all, #resultLogin {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 1.25rem auto !important;
  width: 100% !important;
  background: transparent !important;
}

/* Make any preloader image perfectly circular, centered, and glowing without white backgrounds */
.reload-all img, 
#resultLogin img, 
img[src*="reload"] {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.45), 0 0 40px rgba(6, 182, 212, 0.25) !important;
  border: 2px solid rgba(99, 102, 241, 0.3) !important;
  padding: 6px !important;
  margin: 0 auto !important;
  display: inline-block !important;
  animation: preloaderPulse 1.8s infinite ease-in-out !important;
}

@keyframes preloaderPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 15px rgba(99, 102, 241, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(6, 182, 212, 0.7); }
  100% { transform: scale(0.95); box-shadow: 0 0 15px rgba(99, 102, 241, 0.4); }
}

/* Pure CSS Circular Glowing Ring Loader option */
.custom-loader-ring {
  display: inline-block;
  width: 54px;
  height: 54px;
  border: 4px solid rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  border-top-color: #6366f1;
  border-right-color: #06b6d4;
  animation: spinRing 0.75s linear infinite;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

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

/* ==========================================================================
   CUSTOM TWO-PANEL SPLIT LOGIN LAYOUT (PERFECT FIXED VIEWPORT CENTER)
   ========================================================================== */

html, body {
  margin: 0 !important;
  padding: 0 !important;
}

html:has(.login-split-container), 
body:has(.login-split-container) {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.login-split-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  z-index: 100 !important;
}

.login-split-card {
  width: 100%;
  max-width: 1120px;
  height: min(620px, calc(100vh - 3rem));
  max-height: 640px;
  margin: auto !important;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: rgba(36, 37, 38, 0.96) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 28px !important;
  box-shadow: 0 30px 90px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.25) !important;
  overflow: hidden;
  position: relative;
  z-index: 120;
  box-sizing: border-box;
  animation: loginAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Left Form Panel */
.login-panel-form {
  padding: 2.75rem 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #242526;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 2;
}

.login-form-header {
  margin-bottom: 1rem;
}

.login-logo-img {
  max-width: 135px;
  height: auto;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
}

.login-welcome-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.login-welcome-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.login-panel-form .form-group {
  margin-bottom: 1.1rem !important;
}

.login-panel-form .input-group-text {
  padding: 0.7rem 0.9rem !important;
  font-size: 1.05rem;
}

.login-panel-form .form-control {
  padding: 0.7rem 0.9rem 0.7rem 0.2rem !important;
  font-size: 0.925rem;
}

.login-panel-form .btn-login-submit {
  padding: 0.85rem !important;
  font-size: 0.95rem !important;
  margin-top: 0.5rem;
}

.login-footer-security {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

/* Right Visual Panel */
.login-panel-visual {
  position: relative;
  background-image: url('../img/fondo-login-panel.jpg');
  background-size: cover;
  background-position: center;
  padding: 2.75rem 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  overflow: hidden;
}

.login-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 25, 26, 0.25) 0%, rgba(24, 25, 26, 0.94) 100%),
              radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 60%);
  z-index: 1;
}

.login-visual-content {
  position: relative;
  z-index: 2;
}

.login-badge-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.login-visual-headline {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.login-visual-description {
  color: #d1d5db;
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.login-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(36, 37, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease;
}

.feature-item:hover {
  transform: translateX(6px);
  background: rgba(45, 46, 48, 0.95);
  border-color: rgba(99, 102, 241, 0.4);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 700;
}

.feature-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive Split Panel */
@media (max-width: 920px) {
  .login-split-card {
    grid-template-columns: 1fr;
    max-width: 440px;
    height: auto;
    max-height: 95vh;
  }
  .login-panel-visual {
    display: none;
  }
  .login-panel-form {
    padding: 2rem 1.75rem;
  }
}





