You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

233 lines
7.2 KiB

<!DOCTYPE html>
<html lang="ru">
<head>
<link rel="icon" type="image/x-icon" href="static/favicon.ico">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Вход в сервис</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
body {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.login-container {
width: 100%;
max-width: 450px;
background: white;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.login-header {
background: white;
color: #333;
padding: 25px;
text-align: center;
border-bottom: 2px solid #eee;
}
.logo-container {
background: white;
border-radius: 12px;
padding: 20px;
margin: 0 auto 20px;
display: inline-block;
}
.logo {
max-width: 200px;
height: auto;
display: block;
}
.login-header h1 {
font-size: 24px;
margin-bottom: 10px;
color: #2c3e50;
}
.login-header p {
color: #7f8c8d;
}
.login-content {
padding: 25px;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #2c3e50;
}
.flex-row {
align-items: stretch;
display: flex;
margin-bottom: 20px;
position: relative;
}
.lf--label {
height: 48px;
width: 50px;
display: flex;
align-items: center;
justify-content: center;
background: #f5f6f8;
border: 2px solid #ddd;
border-right: none;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
cursor: pointer;
}
.lf--input {
flex: 1;
padding: 12px 15px;
border: 2px solid #ddd;
border-radius: 0 8px 8px 0;
font-size: 16px;
transition: border-color 0.3s;
height: 48px;
box-sizing: border-box;
}
.lf--input:focus {
border-color: #3498db;
outline: none;
}
.lf--submit {
display: block;
width: 100%;
padding: 15px;
background: linear-gradient(135deg, #c182b9 0%, #5ac6c8 100%);
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: opacity 0.3s;
}
.lf--submit:hover {
opacity: 0.9;
}
.error {
color: #d9534f;
background-color: #f8d7da;
border: 1px solid #f5c6cb;
padding: 15px;
margin-bottom: 20px;
border-radius: 8px;
text-align: center;
}
.forgot-password {
color: #3498db;
text-decoration: none;
font-size: 14px;
transition: color 0.3s;
}
.forgot-password:hover {
color: #2980b9;
text-decoration: underline;
}
@media (max-width: 600px) {
.login-container {
max-width: 100%;
}
.logo {
max-width: 150px;
}
.login-header h1 {
font-size: 20px;
}
.flex-row {
flex-direction: column;
}
.lf--label {
width: 100%;
border: 2px solid #ddd;
border-bottom: none;
border-radius: 8px 8px 0 0;
padding: 5px;
}
.lf--input {
border: 2px solid #ddd;
border-top: none;
border-radius: 0 0 8px 8px;
}
}
</style>
</head>
<body>
<div class="login-container">
<div class="login-header">
<div class="logo-container">
<img src="static/logo.png" alt="Логотип" class="logo">
</div>
<h1>Вход в сервис</h1>
<p>Введите ваши учетные данные</p>
</div>
<div class="login-content">
<!-- Сообщение об ошибке -->
<div class="error" style="display: none;">
Неправильный логин или пароль
</div>
<form class='login-form' method="post" action="/login">
<div class="flex-row">
<label class="lf--label" for="username">
<svg x="0px" y="0px" width="12px" height="13px">
<path fill="#7f8c8d" d="M8.9,7.2C9,6.9,9,6.7,9,6.5v-4C9,1.1,7.9,0,6.5,0h-1C4.1,0,3,1.1,3,2.5v4c0,0.2,0,0.4,0.1,0.7 C1.3,7.8,0,9.5,0,11.5V13h12v-1.5C12,9.5,10.7,7.8,8.9,7.2z M4,2.5C4,1.7,4.7,1,5.5,1h1C7.3,1,8,1.7,8,2.5v4c0,0.2,0,0.4-0.1,0.6 l0.1,0L7.9,7.3C7.6,7.8,7.1,8.2,6.5,8.2h-1c-0.6,0-1.1-0.4-1.4-0.9L4.1,7.1l0.1,0C4,6.9,4,6.7,4,6.5V2.5z M11,12H1v-0.5 c0-1.6,1-2.9,2.4-3.4c0.5,0.7,1.2,1.1,2.1,1.1h1c0.8,0,1.6-0.4,2.1-1.1C10,8.5,11,9.9,11,11.5V12z"/>
</svg>
</label>
<input id="username" name="username" class='lf--input' placeholder='Логин' type='text' required>
</div>
<div class="flex-row">
<label class="lf--label" for="password">
<svg x="0px" y="0px" width="15px" height="5px">
<g>
<path fill="#7f8c8d" d="M6,2L6,2c0-1.1-1-2-2.1-2H2.1C1,0,0,0.9,0,2.1v0.8C0,4.1,1,5,2.1,5h1.7C5,5,6,4.1,6,2.9V3h5v1h1V3h1v2h1V3h1 V2H6z M5.1,2.9c0,0.7-0.6,1.2-1.3,1.2H2.1c-0.7,0-1.3-0.6-1.3-1.2V2.1c0-0.7,0.6-1.2,1.3-1.2h1.7c0.7,0,1.3,0.6,1.3,1.2V2.9z"/>
</g>
</svg>
</label>
<input id="password" name="password" class='lf--input' placeholder='Пароль' type='password' required>
</div>
<input class='lf--submit' type='submit' value='ВОЙТИ'>
</form>
</div>
</div>
</body>
</html>