body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #f6fffb;
    color: #333;
}

header {
    background: #c8f7e7;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #2a8f72;
    letter-spacing: 1px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #2a8f72;
    font-weight: 500;
    transition: 0.2s;
}

nav a:hover {
    color: #1f6f57;
}
nav a.active {
    color: #1f6f57;
    font-weight: 700;
    border-bottom: 2px solid #1f6f57;
}

.hero {
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    color: #2a8f72;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-preview {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.art-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: 0.2s;
}

.art-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.art-card img {
    width: 100%;
    display: block;
}

.art-card-title {
    padding: 12px;
    font-size: 16px;
    color: #2a8f72;
    font-weight: 600;
}

footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

.auth-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.auth-link {
    color: #1f6f57;
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-name {
    font-weight: 600;
    margin-right: 10px;
}

.auth-form {
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #1f6f57;
}

.auth-form input {
    padding: 10px 12px;
    border: 1px solid #cfe7df;
    border-radius: 6px;
    font-size: 15px;
}

.btn-primary {
    background: #1f6f57;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: .9;
}

.error {
    color: #c0392b;
    font-weight: 600;
}

.auth-alt {
    text-align: center;
    margin-top: 10px;
}

.field-error {
    color: #d9534f; /* мягкий красный */
    font-size: 13px;
    margin-top: 4px;
    font-weight: 600;
}

input.error-field {
    border-color: #d9534f !important;
    background: #fff5f5;
}

.welcome-box {
    max-width: 480px;
    margin: 40px auto;
    padding: 30px;
    background: #f4faf8;
    border: 1px solid #dceee7;
    border-radius: 10px;
    text-align: center;
}

.welcome-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-secondary {
    background: #e8f3ef;
    color: #1f6f57;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #d9ebe6;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-window {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 360px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-window h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.btn-secondary {
    background: #e8f3ef;
    color: #1f6f57;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #d9ebe6;
}

.field-error {
    color: #d9534f;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 600;
}

input.error-field {
    border-color: #d9534f !important;
    background: #fff5f5;
}

/* выравниваем поля ввода */
#loginModal input[type="text"],
#loginModal input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

/* чтобы label не ломал сетку */
#loginModal label {
    display: block;
    margin-bottom: 10px;
}

.private-section {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
}

.private-desc {
    margin-bottom: 25px;
    color: #4a4a4a;
}

.private-box {
    background: #f4faf8;
    border: 1px solid #dceee7;
    padding: 30px;
    border-radius: 10px;
}

.private-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}
