  :root {
      --primary: #2563eb;
      --primary-dark: #1d4ed8;
      --navy-900: #0f172a;
      --navy-800: #1e293b;
      --navy-700: #334155;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --border-color: #e2e8f0;
      --bg-surface: #ffffff;
  }

  * {
      box-sizing: border-box;
  }

  body {
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: var(--navy-900);
      background-image:
          radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.18) 0%, transparent 40%),
          radial-gradient(circle at 85% 85%, rgba(30, 41, 59, 0.8) 0%, transparent 45%);
      background-attachment: fixed;
      min-height: 100vh;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      color: var(--text-main);
  }

  /* Container Principal */
  .login-container {
      width: 100%;
      max-width: 1020px;
      background: var(--bg-surface);
      border-radius: 20px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
      overflow: hidden;
      display: flex;
      flex-direction: row;
      border: 1px solid rgba(255, 255, 255, 0.1);
      min-height: 560px;
  }

  /* Panel Izquierdo Corporativo (Showcase) */
  .brand-side {
      width: 45%;
      background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
      padding: 48px;
      color: #ffffff;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  .brand-side::before {
      content: '';
      position: absolute;
      top: -100px;
      right: -100px;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: rgba(37, 99, 235, 0.12);
      filter: blur(50px);
      pointer-events: none;
  }

  .brand-header {
      z-index: 2;
  }

  .brand-logo-badge {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      background: rgba(255, 255, 255, 0.08);
      padding: 10px 18px;
      border-radius: 12px;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      margin-bottom: 24px;
  }

  .brand-logo-badge i {
      font-size: 24px;
      color: #3b82f6;
  }

  .brand-logo-badge span {
      font-weight: 800;
      font-size: 20px;
      letter-spacing: -0.5px;
      color: #ffffff;
  }

  .brand-title {
      font-size: 28px;
      font-weight: 700;
      line-height: 1.25;
      margin-bottom: 12px;
      color: #ffffff;
      letter-spacing: -0.5px;
  }

  .brand-subtitle {
      font-size: 14px;
      color: #94a3b8;
      line-height: 1.6;
      font-weight: 400;
  }

  /* Lista de Funcionalidades */
  .feature-list {
      list-style: none;
      padding: 0;
      margin: 32px 0;
      z-index: 2;
  }

  .feature-item {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      color: #cbd5e1;
      font-size: 14px;
      font-weight: 500;
  }

  .feature-icon-box {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: rgba(37, 99, 235, 0.2);
      color: #60a5fa;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      flex-shrink: 0;
      border: 1px solid rgba(96, 165, 250, 0.2);
  }

  .brand-footer {
      z-index: 2;
      font-size: 12px;
      color: #64748b;
      display: flex;
      align-items: center;
      gap: 8px;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Panel Derecho (Formulario) */
  .form-side {
      width: 55%;
      padding: 56px 48px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: #ffffff;
  }

  .form-header {
      margin-bottom: 36px;
  }

  .form-header h2 {
      font-size: 24px;
      font-weight: 800;
      color: var(--navy-900);
      margin: 0 0 8px 0;
      letter-spacing: -0.5px;
  }

  .form-header p {
      font-size: 14px;
      color: var(--text-muted);
      margin: 0;
  }

  /* Estilos de Inputs Corporativos */
  .custom-form-group {
      margin-bottom: 24px;
  }

  .custom-form-group label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--navy-800);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
  }

  .input-wrapper {
      position: relative;
      display: flex;
      align-items: center;
  }

  .input-wrapper .input-icon {
      position: absolute;
      left: 16px;
      color: #94a3b8;
      font-size: 16px;
      transition: color 0.2s ease;
      pointer-events: none;
  }

  .input-wrapper .form-control {
      width: 100%;
      height: 48px;
      padding: 0 44px 0 46px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 500;
      color: var(--navy-900);
      background-color: #f8fafc;
      border: 1.5px solid #e2e8f0;
      border-radius: 10px;
      transition: all 0.2s ease-in-out;
      box-shadow: none;
  }

  .input-wrapper .form-control:focus {
      background-color: #ffffff;
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
      outline: none;
  }

  .input-wrapper .form-control:focus+.input-icon,
  .input-wrapper .form-control:focus~.input-icon {
      color: var(--primary);
  }

  /* Botón Mostrar / Ocultar Contraseña */
  .password-toggle-btn {
      position: absolute;
      right: 14px;
      background: none;
      border: none;
      color: #94a3b8;
      cursor: pointer;
      padding: 6px;
      font-size: 16px;
      transition: color 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .password-toggle-btn:hover {
      color: var(--navy-800);
  }

  /* Botón de Acceso */
  .btn-submit-corp {
      width: 100%;
      height: 50px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: #ffffff;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
      transition: all 0.2s ease;
      margin-top: 12px;
  }

  .btn-submit-corp:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
      color: #ffffff;
      text-decoration: none;
  }

  .btn-submit-corp:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  }

  /* Enlace Términos y Condiciones */
  .terms-link-wrapper {
      margin-top: 28px;
      text-align: center;
      padding-top: 20px;
      border-top: 1px solid #f1f5f9;
  }

  .terms-link {
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 500;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: color 0.2s ease;
      cursor: pointer;
  }

  .terms-link:hover {
      color: var(--primary);
      text-decoration: underline;
  }

  .terms-link i {
      color: #94a3b8;
  }

  /* Responsive Breakdown */
  @media (max-width: 991px) {
      .login-container {
          flex-direction: column;
          max-width: 460px;
          min-height: auto;
      }

      .brand-side {
          width: 100%;
          padding: 32px 32px 24px 32px;
      }

      .feature-list,
      .brand-footer {
          display: none;
      }

      .brand-title {
          font-size: 22px;
          margin-bottom: 6px;
      }

      .form-side {
          width: 100%;
          padding: 36px 32px;
      }
  }

  /* Estilos Personalizados del Modal de Términos */
  .modal-content {
      border-radius: 16px;
      border: none;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
      overflow: hidden;
  }

  .modal-header-corp {
      background: var(--navy-900);
      color: #ffffff;
      padding: 20px 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
  }

  .modal-header-corp .modal-title {
      font-size: 16px;
      font-weight: 700;
      color: #ffffff;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 10px;
  }

  .modal-header-corp .close {
      color: #94a3b8;
      opacity: 1;
      font-weight: 300;
      font-size: 24px;
      transition: color 0.2s;
  }

  .modal-header-corp .close:hover {
      color: #ffffff;
  }

  .modal-body-corp {
      padding: 28px;
      max-height: 480px;
      overflow-y: auto;
      font-size: 14px;
      line-height: 1.6;
      color: var(--navy-800);
      background-color: #f8fafc;
  }

  .terms-section {
      background: #ffffff;
      padding: 16px 20px;
      border-radius: 10px;
      border: 1px solid #e2e8f0;
      margin-bottom: 14px;
  }

  .terms-section h4 {
      font-size: 14px;
      font-weight: 700;
      color: var(--navy-900);
      margin: 0 0 6px 0;
  }

  .terms-section p {
      margin: 0;
      color: var(--text-muted);
      font-size: 13px;
  }

  .modal-footer-corp {
      padding: 16px 28px;
      background: #ffffff;
      border-top: 1px solid #e2e8f0;
      text-align: right;
  }