﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: url('/Img/fondo2.jpeg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

/* contenedor general */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* tarjeta principal translúcida */
.login-card {
    width: 100%;
    max-width: 520px;
    padding: 30px 35px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* logo arriba */
.logo-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.logo-siga-login {
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.20));
}

/* título */
.titulo-login {
    text-align: center;
    font-family: "Times New Roman", Times, serif;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.30);
}

/* para forzar times si quieres conservar ese estilo */
#loginBox,
#loginBox * {
    font-family: "Times New Roman", Times, serif !important;
}

.input-container,
.password-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

/* inputs translúcidos */
.form-control {
    width: 100%;
    padding: 14px 45px 14px 14px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 16px;
}

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.80) !important;
    }

    .form-control:focus {
        border: 1px solid rgba(23, 201, 232, 0.75) !important;
        box-shadow: 0 0 0 0.18rem rgba(23, 201, 232, 0.20) !important;
        background: rgba(255, 255, 255, 0.25) !important;
        color: #fff !important;
    }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #ffffff;
    opacity: 0.85;
}

/* errores */
.error-text {
    color: #ffd6d6;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    text-shadow: 0 1px 2px rgba(0,0,0,0.30);
}

/* botón */
.btn-login-siga {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #17c9e8 !important;
    color: #000 !important;
    border: 1px solid #17c9e8 !important;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.2s ease-in-out;
    min-width: 190px;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 1.1rem;
}

    .btn-login-siga:hover {
        background-color: #0bb8d4 !important;
        border-color: #0bb8d4 !important;
        color: #000 !important;
        transform: translateY(-1px);
    }

/* recuperar contraseña */
.texto-recuperar {
    margin-top: 22px;
    font-size: 0.95em;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
}

    .texto-recuperar a {
        color: #ffffff;
        text-decoration: underline;
        text-shadow: 0 1px 3px rgba(0,0,0,0.35);
    }

        .texto-recuperar a:hover {
            color: #dff8ff;
        }

/* responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .logo-siga-login {
        max-width: 290px;
    }

    .titulo-login {
        font-size: 1.9rem;
    }
}
