 /*style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body .container_auth {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 300px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

.error {
    color: red;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffe6e6;
    border: 1px solid #ffcccc;
    border-radius: 4px;
}

.success {
    color: green;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e6ffe6;
    border: 1px solid #ccffcc;
    border-radius: 4px;
}

.text-center {
    text-align: center;
}

.test-data {
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}





    .dashboard {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        .user-info {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .logout-btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: #dc3545;
            color: white;
            text-decoration: none;
            border-radius: 4px;
        }
        .logout-btn:hover {
            background-color: #c82333;
        }
        
        
        
        
        
        
        
        
        
        
        
        
        
        /*template*/
        
        
                * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            background-color: #f4f4f4;
        }

        .container {
            display: grid;
            grid-template-areas: 
                "header header"
                "sidebar content"
                "footer footer";
            grid-template-rows: auto 1fr auto;
            grid-template-columns: 250px 1fr;
            min-height: 100vh;
        }

        /* Header */
        header {
            grid-area: header;
            background-color: #2c3e50;
            color: white;
            padding: 1rem 2rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }
        .header-content .user-data {
            display: flex;
            flex-direction: row;
            align-items: center;
            cursor: pointer;
            position: relative;
        }
        .header-content .user-data img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin: 0 10px;
        }
        .header-content .user-data  .logout-btn {
            margin: 0 10px;
        }
        



.user-data {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
}

.user-data:hover .dropdown-menu {
    display: block;
}


.user-data .dropdown-menu p {
    margin: 0;
    line-height: 1.4;
}

.user-data .dropdown-menu p b {
    display: block;
    font-size: 14px;
}

.user-data .dropdown-menu p {
    font-size: 12px;
    color: #666;
}

.logout-btn {
    text-decoration: none;
    font-size: 16px;
    padding: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a.logout {
    color: #d9534f;
}

.dropdown-menu a.logout:hover {
    background-color: #f2dede;
}
        
        
        
        
        
        
        .logo {
            font-size: 1.5rem;
            font-weight: bold;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        nav a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
        }

        nav a:hover {
            color: #3498db;
        }

        /* Sidebar */
        aside {
            grid-area: sidebar;
            background-color: #34495e;
            color: white;
            padding: 2rem;
        }

        .sidebar-menu {
            display: flex;
            list-style: none;
            flex-direction: column;
        }
        
        

        .sidebar-menu li {
            margin-bottom: 1rem;
        }

        .sidebar-menu a {
            color: white;
            text-decoration: none;
            display: block;
            padding: 0.5rem;
            border-radius: 4px;
            transition: background-color 0.3s;
        }

        .sidebar-menu a:hover {
            background-color: #2c3e50;
        }

        /* Main Content */
        main {
            grid-area: content;
            padding: 2rem;
            background-color: white;
        }

        .content-section {
            max-width: 1200px;
            margin: 0 auto;
        }

        .content-section h1 {
            margin-bottom: 1rem;
            color: #2c3e50;
        }

        .content-section p {
            margin-bottom: 1rem;
        }

        /* Footer */
        footer {
            grid-area: footer;
            background-color: #2c3e50;
            color: white;
            padding: 2rem;
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-links {
            display: flex;
            gap: 1rem;
            list-style: none;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }
        

        /* Адаптивность */
        @media (max-width: 768px) {
            .container {
                grid-template-areas: 
                    "header"
                    "content"
                    "sidebar"
                    "footer";
                grid-template-columns: 1fr;
                grid-template-rows: auto 1fr auto auto;
            }

            .header-content {
                flex-direction: column;
                gap: 1rem;
            }

            nav ul {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .footer-content {
                flex-direction: column;
                gap: 1rem;
            }
        }