/* Общие стили */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #007bff;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

button.btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

button.btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.register-link {
    display: block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}

.errors {
    margin-top: 10px;
    background: #f8d7da;
    color: #842029;
    padding: 10px;
    border-radius: 5px;
    text-align: left;
}

.errors ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.user-count {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    transition: font-size 0.3s; 
}

/* Стили для header */
.header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    flex-wrap: wrap;
}

.header a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Стили для переключателя темы */
.theme-switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 80px;
    padding: 10px 20px;
}

.theme-switch-container label {
    margin-right: 10px;
    font-size: 1em;
}

.theme-switch-container select {
    padding: 5px;
    font-size: 1em;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #2585f3;
    border-radius: 5px;
}

/* Стили для footer */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-features li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #666;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    z-index: 1000;
    transition: background-color 0.3s;
}

.scroll-to-top:hover {
    background-color: #0056b3;
}

/* Медиазапросы для адаптивности */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header a {
        margin-left: 0;
        margin-top: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-footer {
        padding: 30px 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
        width: 90%;
    }
}
