.login-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000080 0%, #0a0a2e 40%, #111810 100%);
    overflow: hidden;
    z-index: -1;
  }
  .particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
  }
  .particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: floatParticle linear infinite;
  }
  .particle:nth-child(1) { width: 300px; height: 300px; background: #FD5D39; top: -100px; left: -80px; animation-duration: 15s; }
  .particle:nth-child(2) { width: 200px; height: 200px; background: #F3F2F8; bottom: -50px; right: -50px; animation-duration: 20s; animation-delay: -5s; }
  .particle:nth-child(3) { width: 150px; height: 150px; background: #FD5D39; top: 40%; right: -30px; animation-duration: 18s; animation-delay: -10s; }
  .particle:nth-child(4) { width: 100px; height: 100px; background: #F3F2F8; bottom: 30%; left: -20px; animation-duration: 22s; animation-delay: -3s; }
  .particle:nth-child(5) { width: 250px; height: 250px; background: #FD5D39; top: 60%; left: 50%; animation-duration: 25s; animation-delay: -8s; opacity: 0.04; }
  @keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-40px) rotate(180deg) scale(1.1); }
    100% { transform: translateY(0) rotate(360deg) scale(1); }
  }

  .login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }
  .login-card {
    background: rgba(0, 0, 40, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(253, 93, 57, 0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 440px;
    transition: box-shadow 0.4s ease;
    animation: fadeIn 0.5s ease;
    position: relative;
  }
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  .login-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  }

  .back-btn {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0, 0, 50, 0.5);
    border: 1px solid rgba(253, 93, 57, 0.4);
    color: #FD5D39;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
  }
  .back-btn:hover {
    background: #FD5D39;
    color: white;
    border-color: #FD5D39;
    transform: translateX(-3px);
    box-shadow: 0 6px 18px rgba(253, 93, 57, 0.4);
  }

  .login-header {
    text-align: center;
    padding: 50px 30px 20px;
  }
  .logo-link {
    text-decoration: none;
    display: inline-block;
  }
  .logo-text {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0;
    line-height: 1;
    cursor: default;
  }
  .logo-text .as,
  .logo-text .ep {
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  .as { color: #F3F2F8; }
  .ep { color: #FD5D39; }

  .logo-text.swap .as {
    color: #FD5D39;
    text-shadow: 0 0 12px rgba(253, 93, 57, 0.8);
  }
  .logo-text.swap .ep {
    color: #F3F2F8;
    text-shadow: 0 0 12px rgba(243, 242, 248, 0.8);
  }

  .logo-underline {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FD5D39, #F3F2F8);
    margin: 5px auto 0;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
  }
  .logo-link:hover .logo-underline {
    width: 80%;
  }
  .logo-subtitle {
    font-size: 0.85rem;
    color: rgba(243, 242, 248, 0.7);
    margin: 8px 0 0;
    font-weight: 300;
    letter-spacing: 1px;
  }

  .login-body {
    padding: 0 30px 30px;
  }
  .form-group {
    position: relative;
    margin-bottom: 28px;
  }
  .form-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: rgba(243, 242, 248, 0.5);
    transition: color 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
  }
  .form-group:focus-within .input-icon {
    color: #FD5D39;
    transform: translateY(-50%) scale(1.2);
  }

  /* Estilos forzados para input (texto naranja) */
  .form-control {
    width: 100%;
    padding: 16px 16px 16px 46px;
    background: rgba(0, 0, 50, 0.4);
    border: 1px solid rgba(253, 93, 57, 0.25);
    border-radius: 14px;
    color: #FD5D39 !important;                /* <-- texto naranja forzado */
    -webkit-text-fill-color: #FD5D39 !important; /* para navegadores WebKit */
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
  }
  .form-control::placeholder {
    color: rgba(243, 242, 248, 0.4);
    -webkit-text-fill-color: rgba(243, 242, 248, 0.4);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .form-control:focus::placeholder {
    transform: translateX(5px);
    opacity: 0.5;
  }
  .form-control:focus {
    background: rgba(0, 0, 70, 0.5);
    border-color: #FD5D39;
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(253, 93, 57, 0.15);
    padding-left: 50px;
  }

  /* Anular el color negro del autocompletado */
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:active {
    -webkit-text-fill-color: #FD5D39 !important;
    caret-color: #FD5D39;
    transition: background-color 5000s ease-in-out 0s; /* mantiene el fondo transparente */
  }

  /* Botón del ojo para ver contraseña */
  .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(243, 242, 248, 0.5);
    cursor: pointer;
    padding: 6px;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
    z-index: 3;
  }
  .password-toggle:hover {
    color: #FD5D39;
    transform: translateY(-50%) scale(1.15);
  }

  .btn-login {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, #FD5D39, #e04e2a);
    border: none;
    border-radius: 14px;
    color: #F3F2F8;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: inherit;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(253, 93, 57, 0.4);
    position: relative;
    overflow: hidden;
  }
  .btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
  }
  .btn-login:hover {
    background: linear-gradient(135deg, #ff6b47, #FD5D39);
    box-shadow: 0 10px 28px rgba(253, 93, 57, 0.6);
    transform: translateY(-3px);
  }
  .btn-login:hover::before {
    left: 100%;
  }
  .btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(253, 93, 57, 0.3);
  }

  .login-footer {
    text-align: center;
    padding: 0 30px 30px;
    color: rgba(243, 242, 248, 0.5);
    font-size: 0.85rem;
  }
  .login-footer .highlight {
    color: #FD5D39;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
  }
  .login-footer .highlight::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #FD5D39;
    transition: width 0.3s ease;
  }
  .login-footer .highlight:hover {
    color: #ff6b47;
  }
  .login-footer .highlight:hover::after {
    width: 100%;
  }

  @media (max-width: 480px) {
    .login-header { padding: 30px 20px 15px; }
    .login-body { padding: 0 20px 25px; }
    .login-footer { padding: 0 20px 25px; }
    .logo-text { font-size: 2.5rem; }
    .form-control { padding: 14px 14px 14px 40px; }
    .form-group .input-icon { left: 10px; font-size: 1rem; }
  }
