/**
    * Ficheros:.........: login.css
    * Descripcion.......: Estilos para la pantalla Login
    * Fecha Creacion....: 24/04/2026
    * Fecha Modificacion: 
    *
    * @copyright CopyRight(C)2026 Daniel Rosado
    * @author Daniel Rosado
*/

/*                            Cuerpo de la página                             */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* Fondo académico */
body {
    height: 100vh;
    background: url('../img/login/fondo-academico.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay azul corporativo */
.overlay {
/*    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(10, 30, 100, 0.8),
        rgba(20, 50, 150, 0.85)
    );
    z-index: 1;*/
}
/* ************************************************************************** */
/* Contenedor */
.login-container {
    position: relative;
    z-index: 2;
    width: 380px;
    padding: 35px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    text-align: center;

    animation: fadeIn 1s ease;
}

/* Animación */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo img {
    width: 70px;
    margin-bottom: 10px;
}

.logo h1 {
    font-size: 22px;
    color: #1a237e;
}

.logo p {
    font-size: 13px;
    color: #555;
    margin-bottom: 25px;
}

/* Inputs flotantes */
.input-group {
    position: relative;
    margin-bottom: 10px;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
}

.input-group label {
    position: absolute;
    left: 12px;
    top: 12px;
    background: white;
    padding: 0 5px;
    color: #777;
    font-size: 14px;
    transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -8px;
    font-size: 12px;
    color: #1a237e;
}

/* Botón login */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-login:hover {
    background: #3949ab;
}

/* Divider */
.divider {
    margin: 10px 0;
    position: relative;
}

.divider span {
    background: white;
    padding: 0 10px;
    color: #777;
}

.divider::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: #ccc;
    top: 50%;
    left: 0;
    z-index: -1;
}

/* Registro */
.btn-register {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #1a237e;
    border: 2px solid #1a237e;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-register:hover {
    background: #1a237e;
    color: white;
}

@media all and (max-width: 640px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
    .login-container {
        width: 90%;
        padding: 25px;
    }
}

/* Olvidaste contraseña */
.forgot {
    text-align: right;
    margin-bottom: 15px;
}

.forgot a {
    font-size: 13px;
    color: #1a237e;
    text-decoration: none;
    transition: 0.3s;
}

.forgot a:hover {
    text-decoration: underline;
    color: #3949ab;
}

/* ========================= */
/*  DISEÑO RESPONSIVE        */
/* ========================= */

/* Tablets */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 30px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .logo p {
        font-size: 12px;
    }
}

/* Móviles */
@media (max-width: 480px) {

    body {
        align-items: flex-start;
        /*padding-top: 40px;*/
    }

    .login-container {
        margin: 40px auto;
        transform: none;  /*elimina centrado forzado */
    }

    .logo img {
        width: 60px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .input-group input {
        padding: 14px; /* mejor para dedo */
        font-size: 14px;
    }

    .btn-login,
    .btn-register {
        padding: 14px;
        font-size: 15px;
    }

    .forgot a {
        font-size: 12px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    .login-container {
        padding: 20px 15px;
    }

    .logo h1 {
        font-size: 16px;
    }
}