
body {
    background-image: url('/static/Imagenes/FondoPantalla.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Encabezado con logos */
.header-login {
    width: 100%;
    padding: 20px 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-login img {
    height: 155px;
    object-fit: contain;
}

.auth-box {
    background-color: rgba(0, 0, 0, 0.78);
    padding: 35px 30px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(242, 201, 76, 0.22);
    width: 360px;
    max-width: calc(100% - 40px);
    animation: fadeIn 0.5s ease-in-out;
}

.form-container h2 {
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    font-size: 15px;
}

input:focus {
    border-color: #d6bb1f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 187, 31, 0.18);
}

button {
    width: 100%;
    padding: 12px;
    background-color: #d6bb1f;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e6c300;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


p {
    font-size: 14px;
    margin-top: 15px;
    color: #ffffff;
}

a {
    color: #f2d200;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

.mensaje-error {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.45);
    padding: 10px 12px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-subtitle {
    text-align: center;
    color: #d9d9d9;
    font-size: 14px;
    margin-bottom: 18px;
}

.password-wrapper {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.password-wrapper input {
    width: 100%;
    padding-right: 70px;
    margin: 0;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: auto;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
    background-color: #2c2c2c;
    color: #fff;
    cursor: pointer;
}

.toggle-password:hover {
    background-color: #444;
}


/* Ícono grande de candado arriba del formulario */
.login-icon {
    text-align: center;
    margin-bottom: 12px;
    color: #f2c94c;
    font-size: 40px;
}
 
/* Inputs con ícono a la izquierda */
.input-wrapper {
    position: relative;
    width: 100%;
    margin: 10px 0;
}
 
.input-wrapper input {
    width: 100%;
    padding-left: 42px;
    margin: 0;
    box-sizing: border-box;
}
 
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 15px;
    pointer-events: none;
}
 
/* Botón de ojo para contraseña */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: auto;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 8px;
    background-color: #2c2c2c;
    color: #fff;
    cursor: pointer;
}
 
/* Botón de submit con ícono */
.btn-submit i {
    margin-right: 6px;
}
 
/* Quitar keyframes duplicado */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
 