<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="utf-8">
    <title>Login - Sistema de Gestión de Proyectos</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#0d6efd">

    <!-- Bootstrap 3 CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">

    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet">

    <style>
        body {
            height: 100vh;
            background: linear-gradient(135deg, #4A90E2, #50E3C2);
            font-family: 'Roboto', sans-serif;
        }
        .login-panel {
            margin-top: 80px;
            background-color: #fff;
            padding: 40px 30px;
            border-radius: 12px;
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .login-panel:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 40px rgba(0,0,0,0.25);
        }
        .panel-heading {
            text-align: center;
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 20px;
            color: #333;
        }
        .profile-img {
            display: block;
            margin: 0 auto 25px;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background-color: #f0f0f0;
            padding: 15px;
        }
        .form-control {
            border-radius: 30px;
            padding: 12px 20px;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        .form-control:focus {
            box-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
            border-color: #4A90E2;
        }
        .btn-primary {
            border-radius: 30px;
            padding: 12px;
            font-size: 16px;
            background-color: #4A90E2;
            border-color: #4A90E2;
            transition: all 0.3s ease;
        }
        .btn-primary:hover {
            background-color: #357ABD;
            border-color: #357ABD;
        }
        .panel-footer {
            text-align: center;
            margin-top: 15px;
            font-size: 14px;
        }
        .panel-footer a {
            font-weight: bold;
            color: #4A90E2;
            text-decoration: none;
        }
        .panel-footer a:hover {
            text-decoration: underline;
        }
        .input-group-addon {
            border-radius: 30px 0 0 30px;
            background-color: #eee;
            border: none;
        }
    </style>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

    <script>
        function ingresar(f) {
            f.action = 'controladores/loguin.php';
            f.submit();
        }
    </script>
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-sm-6 col-md-4 col-md-offset-4">
                <div class="login-panel">
                    <div class="panel-heading">INTRANET - Gestión de Proyectos</div>
                    
                    <!-- Logo de gestión de proyectos -->
                    <img class="profile-img" src="https://cdn-icons-png.flaticon.com/512/3135/3135715.png" alt="Logo Gestión de Proyectos">

                    <form role="form" method="POST">
                        <fieldset>
                            <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
                                    <input class="form-control" placeholder="Usuario" name="txtu" type="text" autofocus required>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                                    <input class="form-control" placeholder="Contraseña" name="txtc" type="password" required>
                                </div>
                            </div>
                            <div class="form-group">
                                <button type="button" class="btn btn-primary btn-block" onclick="ingresar(this.form);">Iniciar Sesión</button>
                            </div>
                        </fieldset>
                    </form>

                    <div class="panel-footer">
                        Consulta al 950065470 para  contactar al administrador </div>
                </div>
            </div>
        </div>
    </div>
    <script>
if ('serviceWorker' in navigator) {
  navigator.serviceWorker.register('service-worker.js');
}
</script>
</body>
</html>
