/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 30px 35px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: 0.3s;
}

h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.2s;
}

input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #0056b3;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #f5c6cb;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #c3e6cb;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 550px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 24px;
    }
}


/* Стили для dashboard с плитками */
.dashboard-container {
    max-width: 1000px;
    width: 90%;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.logout-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #dc3545;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #c82333;
    text-decoration: none;
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 26px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.project-card {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    background: white;
    border-color: #007bff;
}

.project-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.project-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

@media (max-width: 550px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .project-card {
        padding: 20px;
    }
    .project-icon {
        font-size: 40px;
    }
}


/* Стили для неактивных плиток */
.project-card.inactive {
    background: #e9ecef;
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(0.1);
    box-shadow: none;
    border-color: #dee2e6;
}

.project-card.inactive:hover {
    transform: none;
    box-shadow: none;
    background: #e9ecef;
    border-color: #dee2e6;
}

.project-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: #6c757d;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}