*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      /*background: #f0f2f5;*/
      background: linear-gradient(135deg, #1e293b, #0f172a);
      min-height: 100vh;
      display: flex;
      align-items: flex-start;
      padding-top: 80px;
      /*align-items: center;*/
      justify-content: center;
     /* padding: 2rem 1rem;*/
    }
    @keyframes fadeIn {
       from {
         opacity: 0;
         transform: translateY(20px);
       }
       to {
         opacity: 1;
         transform: translateY(0);
       }
      }

    .login-wrapper {
      animation: fadeIn 0.6s ease;
      display: flex;
      width: 100%;
      max-width: 900px;
      min-height: 520px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 32px rgba(0,0,0,0.13);
    }
    .logo-circle {transform: translateY(-30px);}
    .panel-left {
      flex: 1.1;
      background: #222b4d;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 3rem 2.5rem;
    }
    .panel-left h1 { color: white; font-size: 22px; font-weight: 500; margin-bottom: 0.4rem; text-align: center; margin-top: 10px; }
    .panel-left .subtitle { color: rgba(255,255,255,0.55); font-size: 13px; margin-bottom: 2.5rem; text-align: center; }
    .features { width: 100%; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
    .feature-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 1.2rem; }
    .feature-icon {
      width: 28px; height: 28px; border-radius: 50%;
      background: rgba(255,255,255,0.1);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; margin-top: 2px;
    }
    .feature-item h3 { color: white; font-size: 13px; font-weight: 500; margin-bottom: 2px; }
    .feature-item p { color: rgba(255,255,255,0.5); font-size: 12px; line-height: 1.5; }
    .panel-right {
      flex: 1; background: white;
      display: flex; flex-direction: column; justify-content: center;
      padding: 3rem 2.5rem;
    }
    .panel-right h2 { font-size: 22px; font-weight: 500; color: #222b4d; margin-bottom: 0.4rem; }
    .panel-right .welcome-sub { font-size: 14px; color: #6b7280; margin-bottom: 2rem; }
    .form-group { margin-bottom: 1.2rem; }
    .form-group label { display: block; font-size: 13px; color: #222b4d; font-weight: 500; margin-bottom: 6px; }
    .form-group input {
      width: 100%; padding: 10px 14px;
      border: 1px solid #d1d5db; border-radius: 8px;
      font-size: 14px; color: #222b4d; background: #f9fafb;
      outline: none; transition: border-color 0.2s;
    }
    .form-group input {background: #fff; border: 1px solid #e5e7eb;}
    .form-group input:focus {border-color: #3b82f6;box-shadow: 0 0 0 2px rgba(59,130,246,0.2);}
    /*.form-group input:focus { border-color: #222b4d; }*/
    .pwd-wrapper { position: relative; }
    .pwd-wrapper input { padding-right: 42px; }
    .pwd-toggle {
      position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
      cursor: pointer; background: none; border: none; padding: 0;
      display: flex; align-items: center;
    }
    .forgot { text-align: right; margin-bottom: 1.8rem; }
    .forgot a { font-size: 12px; color: #222b4d; text-decoration: none; opacity: 0.7; }
    .forgot a:hover { opacity: 1; text-decoration: underline; }
    .btn-ingresar {
      width: 100%; padding: 11px;
      background: #222b4d; color: white;
      border: none; border-radius: 8px;
      font-size: 15px; font-weight: 500; cursor: pointer;
      transition: background 0.2s;
    }
    .btn-ingresar { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);}    
    .btn-ingresar:hover {transform: translateY(-1px);box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);}                                           
    /*.btn-ingresar:hover { background: #1a2240; }*/
    .btn-ingresar:active { background: #141a36; }
    .alert { display: none; margin-top: 1rem; padding: 10px 14px; border-radius: 8px; font-size: 13px; text-align: center; }
    .alert.error   { background: #fee2e2; color: #991b1b; display: block; }
    .alert.success { background: #dcfce7; color: #166534; display: block; }
    .footer-note { text-align: center; font-size: 12px; color: #9ca3af; margin-top: 1.8rem; }
    @media (max-width: 640px) {
      .panel-left { display: none; }
      .panel-right { padding: 2.5rem 1.5rem; }
    }