207 lines
5.3 KiB
CSS
207 lines
5.3 KiB
CSS
/* Основные стили для body */
|
|
body {
|
|
background: #EBF0F9;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: 'Arial', sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.box-center {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Стили для карточки входа */
|
|
.login-card {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
border-radius: 15px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
padding: 2rem;
|
|
width: 530px;
|
|
max-width: 90%; /* Адаптивная ширина */
|
|
height: auto; /* Убираем фиксированную высоту */
|
|
animation: fadeIn 0.5s ease-in-out;
|
|
}
|
|
|
|
.login-card h2 {
|
|
color: #333;
|
|
font-weight: bold;
|
|
margin-bottom: 1.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Стили для формы */
|
|
.form-control {
|
|
border-radius: 10px;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid #ddd;
|
|
transition: all 0.3s ease;
|
|
width: 100%;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
|
|
outline: none;
|
|
}
|
|
|
|
/* Стили для кнопки */
|
|
.btn-primary {
|
|
width: 100%; /* Растягиваем кнопку на всю ширину */
|
|
height: auto; /* Высота теперь зависит от содержимого */
|
|
border-radius: 8px;
|
|
gap: 10px;
|
|
padding: 16px 32px;
|
|
background: #0A5BFF;
|
|
border: none;
|
|
color: white;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease, transform 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Состояние при наведении */
|
|
.btn-primary:hover {
|
|
background: #0949cc;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Состояние при нажатии */
|
|
.btn-primary:active {
|
|
background: #0738a3;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Состояние отключенной кнопки */
|
|
.btn-primary:disabled {
|
|
background: #cccccc;
|
|
cursor: not-allowed;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Стили для логотипа */
|
|
.logo-img {
|
|
max-width: 100px;
|
|
height: auto;
|
|
display: inline-block;
|
|
margin-bottom: 1rem;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.logo-img:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Стили для ошибок */
|
|
.invalid-feedback {
|
|
color: #dc3545;
|
|
font-size: 0.875rem;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* Стили для футера */
|
|
.footer-links {
|
|
margin-top: 1.5rem;
|
|
text-align: center;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.footer-links a {
|
|
color: #667eea;
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.footer-links a:hover {
|
|
color: #764ba2;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Стили для иконки ошибки */
|
|
.alert i {
|
|
color: #ff0707; /* Желтый цвет иконки */
|
|
font-size: 1.5rem; /* Размер иконки */
|
|
margin-right: 10px; /* Отступ справа */
|
|
animation: blink 1.5s infinite; /* Анимация мерцания */
|
|
}
|
|
|
|
|
|
@keyframes blink {
|
|
0%, 50%, 100% { opacity: 1; }
|
|
25%, 75% { opacity: 0.5; }
|
|
}
|
|
|
|
/* Анимация появления */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Медиа-запросы для маленьких экранов */
|
|
@media (max-width: 768px) {
|
|
.login-card {
|
|
padding: 1.5rem; /* Уменьшаем отступы */
|
|
width: 90%; /* Адаптивная ширина */
|
|
}
|
|
|
|
.form-control {
|
|
font-size: 14px; /* Уменьшаем размер текста */
|
|
padding: 0.6rem 0.8rem; /* Уменьшаем отступы */
|
|
}
|
|
|
|
.btn-primary {
|
|
font-size: 14px; /* Уменьшаем размер текста */
|
|
padding: 12px 20px; /* Уменьшаем отступы */
|
|
}
|
|
|
|
.logo-img {
|
|
max-width: 80px; /* Сужаем логотип */
|
|
}
|
|
|
|
.footer-links {
|
|
font-size: 0.8rem; /* Уменьшаем размер текста */
|
|
}
|
|
}
|
|
|
|
/* Медиа-запросы для очень маленьких экранов */
|
|
@media (max-width: 480px) {
|
|
.login-card {
|
|
padding: 1rem; /* Ещё меньше отступы */
|
|
width: 95%; /* Ещё более адаптивная ширина */
|
|
}
|
|
|
|
.form-control {
|
|
font-size: 12px; /* Дополнительно уменьшаем размер текста */
|
|
padding: 0.5rem 0.7rem; /* Дополнительно уменьшаем отступы */
|
|
}
|
|
|
|
.btn-primary {
|
|
font-size: 12px; /* Дополнительно уменьшаем размер текста */
|
|
padding: 10px 15px; /* Дополнительно уменьшаем отступы */
|
|
}
|
|
|
|
.logo-img {
|
|
max-width: 60px; /* Ещё меньше логотип */
|
|
}
|
|
|
|
.footer-links {
|
|
font-size: 0.7rem; /* Дополнительно уменьшаем размер текста */
|
|
}
|
|
} |