@import url('https://googleapis.com');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gold-text {
    background: linear-gradient(135deg, 
        #bf953f 0%, 
        #fcf6ba 25%, 
        #b38728 50%, 
        #fbf5b7 75%, 
        #aa771c 100%
    );
    
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
            
    font-weight: 800;
    
    filter: drop-shadow(2px 3px 5px rgba(0, 0, 0, 0.4));
}



body {
    font-family: 'Lora', serif;
    background-color: #0b0c10;
    color: #c5a880;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: linear-gradient(rgba(41, 44, 53, 0.85), rgba(11, 10, 15, 0.95));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/*Хеддер*/
.main-header {
    background-color: rgba(11, 12, 16, 0.9);
    border-bottom: 2px solid #8e7344;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.main-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #ffd700;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    margin-bottom: 5px;
}

.company-mission {
    font-size: 1rem;
    font-style: italic;
    color: #a8a8a8;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.info-text {
    text-align: center;
    max-width: 650px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/*Сетка с картинками*/
.fantasy-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border: 1px solid #5c4a2a;
    border-radius: 4px;
    overflow: hidden;
    height: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.3) brightness(0.7) contrast(1.1);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: sepia(0) brightness(0.9) contrast(1);
}

/*Контейнер формы*/
.auth-container {
    width: 100%;
    max-width: 450px;
    margin-bottom: 40px;
}

.auth-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #ffd700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

/*Стилизация формы под старинную рамку*/
.auth-form-box {
    border: 2px solid #8e7344;
    background-color: rgba(20, 22, 26, 0.95);
    padding: 30px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    border-radius: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #ffd700;
    letter-spacing: 1px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: #0b0c10;
    border: 1px solid #5c4a2a;
    color: #e0e0e0;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-group input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #8e7344;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #a8a8a8;
    cursor: pointer;
}

/*Кнопки и ссылки*/
.action-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.action-links button {
    background-color: #8e7344;
    border: 1px solid #ffd700;
    color: #0b0c10;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.action-links button:hover {
    background-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.action-links a {
    font-size: 0.9rem;
    color: #c5a880;
    text-decoration: none;
    transition: color 0.3s;
}

.action-links a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/*Системные уведомления*/
.msg {
    margin-bottom: 20px;
    padding: 12px;
    font-size: 0.95rem;
    text-align: center;
    border-radius: 3px;
}
.error { background-color: rgba(204, 0, 0, 0.15); border: 1px solid #cc0000; color: #ff6666; }
.success { background-color: rgba(0, 102, 0, 0.15); border: 1px solid #006600; color: #66ff66; }

/*Футтер*/
.main-footer {
    background-color: rgba(11, 12, 16, 0.95);
    border-top: 2px solid #8e7344;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
}

.footer-contacts {
    font-size: 0.9rem;
    color: #a8a8a8;
    margin-bottom: 15px;
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-socials a {
    color: #ffd700;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/*Медиа-запросы для мобильных устройств*/
@media (max-width: 600px) {
    .main-header h1 {
        font-size: 1.6rem;
    }
    .content-wrapper {
        padding: 20px 15px;
    }
    .info-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .auth-form-box {
        padding: 20px 15px;
    }
    .action-links {
        flex-direction: column;
        width: 100%;
    }
    .action-links button {
        width: 100%;
        padding: 12px;
    }
    .footer-socials {
        gap: 15px;
    }
}
