body {
    background-color: #0d1b2a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Fondo elegante tipo oficina de consultoría */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1573164713988-8665fc963095?fit=crop&w=1920&q=80') center center / cover no-repeat;
    animation: lightWave 35s ease-in-out infinite;
    z-index: -1;
    opacity: 0.14;
    
}

@keyframes lightWave {
  0% { box-shadow: 0 0 20px rgba(255,255,255,0.05); }
  50% { box-shadow: 0 0 60px rgba(255,255,255,0.08); }
  100% { box-shadow: 0 0 20px rgba(255,255,255,0.05); }
}

h2 {
    text-align: center;
    margin-top: 80px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-size: 26px;
}

/* Login visualmente mejor alineado */
form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    width: 320px;
    margin: 40px auto;
    border-radius: 15px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

/* Inputs mejorados visualmente */
input, button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input {
    background-color: #1c2e4a;
    color: white;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
}

input:focus {
    background-color: #243b5a;
    box-shadow: 0 0 5px #3f72af;
    outline: none;
}

input::placeholder {
    color: #ccc;
    font-size: 13px;
}

/* Botón mejorado */
button {
    background-color: #2d609e;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #16314a;
}

/* Botón de registro */
.back-button {
    background-color: #2d609e;
    color: white;
}

.back-button:hover {
    background-color: #16314a;
}

/* Mensaje de error emergente */
.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(20, 20, 20, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    font-size: 16px;
    text-align: center;
    z-index: 9999;
    display: none;
    width: 300px;
    animation: fadeIn 0.4s ease;
}

.popup-message.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95) translate(-50%, -50%); }
    to { opacity: 1; transform: scale(1) translate(-50%, -50%); }
}

/* Logo institucional fijo */
.logo-zorro {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: auto;
    z-index: 1000;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.logo-zorro:hover {
    transform: scale(1.1);
}

.recuperar-password {
    text-align: center;
    margin-top: 15px;
}

.recuperar-password a {
    color: #0d47a1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.recuperar-password a:hover {
    color: #08306b;
     text-decoration: underline;
}
