/* Fondo con gradiente */

/* Fondo corporativo con logo en marca de agua */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #003472;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Marca de agua */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/logo.png'); /* ajusta ruta si necesario */
    background-repeat: repeat;
    background-size: 100px;
    opacity: 0.05; /*  controla intensidad (0.03 a 0.08 ideal) */
    z-index: -1;
}


/* Contenedor del login */
form {
    background: rgba(0, 52, 114, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    width: 350px;
    box-shadow: 0 8px 25px rgba(238, 231, 231, 0.50);
    text-align: center;
    color: #f6f6f8;
}

/* Titulo */
form h2 {
    margin:0;
    margin-bottom: 1px;
    font-size: 20px;
    font-weight: bold;
    color: #f5f5f5;
}
form h1 {
    margin:0;
    margin-bottom: 1px;
    font-size: 30px;
    font-weight: bold;
    color: #f5f5f5;
}

/* Inputs */
form input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: none;
    border-radius: 8px;
    outline: none;
    background: rgba(100, 79, 196, 0.2);
    color: #f2f2f3;
    font-size: 16px;
    transition: 0.3s;
}

form input::placeholder {
    color: #f4f4f5;
}

form input:focus {
    background: rgba(247, 243, 243, 0.3);
    box-shadow: 0 0 8px #232396;
}

/* Boton */
form button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #05128a, #003472);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: linear-gradient(125deg, #b00c0a, #00264d);
    transform: scale(1.05);
}

/* Mensaje de error */
.error-box {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    font-weight: 500;
    border: 1px solid #ff4d4d;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    backdrop-filter: blur(5px);
    animation: aparecer 0.3s ease;
}

/* Animacion suave */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body {
    background: white !important;
}
