/* Импорт красивого шрифта */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,600;14..32,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e8f0e8 0%, #c8dfc8 100%);
    color: #1e2f2e;
    line-height: 1.5;
    min-height: 100vh;
}

/* Контейнеры */
.container, .login-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
}

/* Стили для страницы входа (общие, но фон переопределён в login.php) */
.login-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 480px;
    transition: transform 0.3s ease;
}

/* Заголовки */
h1, h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e4620, #3b7a3e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }

/* Форма */
label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin: 1rem 0 0.3rem;
    color: #2c4b2e;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

input:focus {
    outline: none;
    border-color: #3b7a3e;
    box-shadow: 0 0 0 3px rgba(59, 122, 62, 0.2);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(95deg, #2c5e2e, #1f3f21);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: transform 0.1s, box-shadow 0.2s;
}

button:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

/* Ошибка */
.error {
    background: #fff0f0;
    color: #b91c1c;
    padding: 10px;
    border-radius: 40px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-left: 4px solid #b91c1c;
}

/* Галерея (сетка) */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 40px -15px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover img {
    transform: scale(1.03);
}

.card p {
    padding: 1.2rem;
    font-weight: 600;
    text-align: center;
    background: white;
    color: #1e4620;
    font-size: 1.1rem;
}

/* Кнопка выхода */
.logout-btn {
    display: inline-block;
    background: #ffffffcc;
    backdrop-filter: blur(4px);
    color: #1e4620;
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    border: 1px solid #b0cfb0;
    transition: 0.2s;
}

.logout-btn:hover {
    background: white;
    border-color: #2c5e2e;
    color: #2c5e2e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Текст-ссылка */
.demo, .nature-note {
    font-size: 0.85rem;
    color: #3b5e3b;
    margin-top: 1rem;
}

/* Адаптивность */
@media (max-width: 700px) {
    .container, .login-container { padding: 1.5rem; }
    h1 { font-size: 1.8rem; }
    .gallery { gap: 1rem; }
}
