Добавлен middleware для обработки авторизации, страница входа с формой и валидацией, а также стили для страницы авторизации. Обновлены зависимости js-cookie и @types/js-cookie.

This commit is contained in:
Redsandyg
2025-06-03 12:07:03 +03:00
parent 9b1cbc0300
commit 6ab1a42be7
6 changed files with 180 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
.authContainer {
max-width: 400px;
margin: 60px auto;
background: #fff;
border-radius: 16px;
box-shadow: 0 2px 16px rgba(0,0,0,0.07);
padding: 32px 32px 24px 32px;
display: flex;
flex-direction: column;
align-items: center;
}
.authTitle {
font-size: 2rem;
font-weight: 700;
margin-bottom: 24px;
color: #222;
}
.authForm {
width: 100%;
display: flex;
flex-direction: column;
gap: 18px;
}
.authInput {
padding: 12px 16px;
border: 1px solid #e0e0e0;
border-radius: 8px;
font-size: 1rem;
outline: none;
transition: border 0.2s;
}
.authInput:focus {
border: 1.5px solid #0070f3;
}
.authButton {
background: #0070f3;
color: #fff;
border: none;
border-radius: 8px;
padding: 12px 0;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.authButton:hover {
background: #005bb5;
}
.authError {
color: #e53935;
font-size: 0.95rem;
margin-top: -10px;
margin-bottom: 10px;
text-align: center;
}