@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f1f1f1;
    height: 100vh;
}

html, body {
    overflow-y: hidden;      /* Oculta el scroll vertical */
    height: 100vh;           /* Asegura altura completa del viewport */
    margin: 0;               /* Elimina márgenes por defecto */
    padding: 0;
}

.container-login {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-image: url('../Imagenes/fondologin.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-box {
    background: #fff;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 400px;
}

.logo {
    width: 300px;
    max-width: 100%;
    margin-bottom: 40px;
}


.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.input-icon {
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 2px solid #ccc;
    transition: border-color 0.3s;
}

.input-icon input {
    border: none;
    outline: none;
    flex: 1;
    padding: 12px;
    font-size: 18px;
    background: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.input-icon input::placeholder {
    color: #aaa;
}

.input-icon i {
    position: absolute;
    right: 10px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

.input-icon .toggle-password {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
    user-select: none;
    transition: color 0.3s ease;
}

.input-icon .toggle-password:hover {
    color: #F27329;
}

.input-icon input:focus + .toggle-password,
.input-icon input:focus {
    border-color: #F27329;
}

.input-icon input:focus {
    border-bottom: 2px solid #F27329;
    color: #F27329;
    outline: none;
}

.input-icon:focus-within {
    border-bottom-color: #F27329;
}

.input-icon:focus-within i {
    color: #F27329;
}

.login-btn {
    background-color: #F27329;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #d65f1c;
}

.forgot-pass {
    margin-top: 15px;
    font-size: 12px;
}

.forgot-pass a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-pass a:hover {
    color: #F27329;
}

.input-icon i.fa {
    width: 22px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .login-box {
        width: 90%;
        padding: 30px 25px;
    }

    .logo {
        width: 200px;
        margin-bottom: 30px;
    }

    .input-group label {
        font-size: 16px;
    }

    .input-icon input {
        font-size: 16px;
    }

    .login-btn {
        font-size: 16px;
    }
}

/* OCULTAR IMAGEN DE FONDO EN TABLET Y MÓVIL */
@media (max-width: 768px) {
    .container-login {
        background-image: none;
        background-color: #f1f1f1;
    }
}

@media (min-width: 769px) {
    .container-login {
        background-position: center center;
    }
}



 