* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

/* Стили для страницы авторизации (темная тема) */
body.auth-page {
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background-color: #2d2d2d;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.auth-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    color: #ffffff;
}

.auth-input {
    width: 100%;
    padding: 20px;
    font-size: 1.5em;
    border: none;
    border-radius: 8px;
    background-color: #3d3d3d;
    color: #ffffff;
    margin-bottom: 20px;
}

.auth-input::placeholder {
    color: #cccccc;
}

.auth-button {
    width: 100%;
    padding: 20px;
    font-size: 1.5em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #45a049;
}

.error-message {
    color: #ff6b6b;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Стили для системной страницы (светлая тема) */
body.system-page {
    background-color: #f5f5f5;
    color: #333333;
    padding: 20px;
}

.logout-button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #ff4757;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s, transform 0.2s;
}

.logout-button:hover {
    background-color: #ff3742;
    transform: translateY(-2px);
}

.system-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 60px;
}

.system-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.system-list {
    list-style: none;
    font-size: 1.2em;
}

.system-list li {
    padding: 15px;
    margin: 10px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .auth-title {
        font-size: 2em;
    }
    
    .auth-input,
    .auth-button {
        font-size: 1.2em;
        padding: 15px;
    }
    
    .system-title {
        font-size: 2em;
    }
    
    .logout-button {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}