115 lines
2.2 KiB
HTML
115 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="it">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Accedi</title>
|
|
|
|
<link rel="stylesheet" href="/css/login.css">
|
|
|
|
<style>
|
|
/* Mini stile integrato (puoi spostarlo in login.css) */
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: system-ui, sans-serif;
|
|
background: #f5f5f5;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
}
|
|
|
|
.login-box {
|
|
background: white;
|
|
padding: 28px;
|
|
border-radius: 12px;
|
|
width: 100%;
|
|
max-width: 360px;
|
|
box-shadow: 0 4px 18px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
h1 {
|
|
margin: 0 0 20px;
|
|
font-size: 1.6rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.input-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid #ccc;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
button {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: #0078ff;
|
|
color: white;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
button[disabled] {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
#loginError {
|
|
margin-top: 12px;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
background: #ffdddd;
|
|
color: #900;
|
|
display: none;
|
|
}
|
|
|
|
#loginError.visible {
|
|
display: block;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="login-box">
|
|
<h1>Accedi</h1>
|
|
|
|
<form id="loginForm" data-redirect="/">
|
|
<div class="input-group">
|
|
<label for="loginUser">Email</label>
|
|
<input id="loginUser" type="email">
|
|
</div>
|
|
|
|
<div class="input-group">
|
|
<label for="loginPass">Password</label>
|
|
<input id="loginPass" type="password" autocomplete="current-password" required>
|
|
</div>
|
|
|
|
<button id="loginSubmit" type="submit">Entra</button>
|
|
|
|
<div id="loginError"></div>
|
|
</form>
|
|
</div>
|
|
|
|
<!-- Script -->
|
|
<script src="/js/auth.js"></script>
|
|
<script src="/js/login.js"></script>
|
|
|
|
</body>
|
|
</html>
|