main > .container {
    padding: 70px 15px 20px;
}

.bg-dark {
    background-color: #815e3f !important;
}

.bg-light {
    background-color: #815e3f !important;
}


     /* Основные стили для страницы регистрации */
 .reg {
     min-height: 100vh;
     background: linear-gradient(135deg, #f9f3e9 0%, #fff8f0 100%);
     padding: 40px 20px;
     position: relative;
     overflow: hidden;
 }

.reg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23d4a574" fill-opacity="0.1" d="M50,10 Q70,20 80,40 Q90,60 80,80 Q70,90 50,90 Q30,90 20,80 Q10,60 20,40 Q30,20 50,10 Z"/><circle cx="35" cy="35" r="8" fill="%23d4a574" fill-opacity="0.1"/><circle cx="65" cy="65" r="6" fill="%23d4a574" fill-opacity="0.1"/></svg>');
    background-size: 300px;
    opacity: 0.3;
    z-index: 0;
}

.col-lg-5 {
    position: relative;
    z-index: 1;
    background: rgba(255, 253, 250, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow:
            0 10px 30px rgba(139, 69, 19, 0.1),
            0 0 0 1px #f5e6d3,
            inset 0 0 20px rgba(255, 248, 240, 0.5);
    border: 2px solid #e6d0b8;
    margin: 0 auto;
    max-width: 500px;
}

/* Заголовок */
.zagolovok {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.zagolovok h2 {
    color: #8B4513;
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
}

.zagolovok::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4A574, transparent);
    border-radius: 3px;
}

/* Форма */
.form-horizontal {
    background: transparent;
}

/* Поля формы */
.form-control {
    background-color: #FFFDFA;
    border: 2px solid #E6D0B8;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 16px;
    color: #5D4037;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(139, 69, 19, 0.05);
}

.form-control:focus {
    background-color: #FFF8F0;
    border-color: #D4A574;
    box-shadow:
            0 0 0 3px rgba(212, 165, 116, 0.2),
            inset 0 2px 4px rgba(139, 69, 19, 0.05);
    outline: none;
}

.form-control::placeholder {
    color: #A1887F;
    font-style: italic;
}

/* Лейблы */
.control-label {
    color: #8B4513;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
    display: block;
}

/* Поле с маской телефона */
input[type="tel"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Кнопка */
.btn-primary {
    background: linear-gradient(135deg, #D4A574 0%, #BC8F5A 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-size: 17px;
    font-weight: 600;
    color: #FFF8F0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow:
            0 4px 15px rgba(212, 165, 116, 0.3),
            0 2px 4px rgba(139, 69, 19, 0.1);
    position: relative;
    overflow: hidden;
    margin-right: 20px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #BC8F5A 0%, #A67C52 100%);
    transform: translateY(-2px);
    box-shadow:
            0 6px 20px rgba(212, 165, 116, 0.4),
            0 3px 6px rgba(139, 69, 19, 0.15);
    color: #FFF;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow:
            0 2px 10px rgba(212, 165, 116, 0.2),
            0 1px 2px rgba(139, 69, 19, 0.1);
}

/* Ссылка на авторизацию */
.form-group a {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.form-group a:hover {
    color: #5D4037;
    background-color: rgba(212, 165, 116, 0.1);
    border-color: #E6D0B8;
    text-decoration: none;
}

.form-group a::before {
    content: "🥐";
    margin-right: 8px;
    font-size: 18px;
}

/* Flex контейнер для кнопки и ссылки */
.form-group .d-flex {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #E6D0B8;
}

/* Декоративные элементы */
.col-lg-5::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #D4A574, #E6D0B8, #F5E6D3);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.1;
}

/* Анимация появления полей */
.form-control {
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Последовательная анимация для полей */
.form-field:nth-child(1) { animation-delay: 0.1s; }
.form-field:nth-child(2) { animation-delay: 0.2s; }
.form-field:nth-child(3) { animation-delay: 0.3s; }
.form-field:nth-child(4) { animation-delay: 0.4s; }
.form-field:nth-child(5) { animation-delay: 0.5s; }
.form-field:nth-child(6) { animation-delay: 0.6s; }
.form-field:nth-child(7) { animation-delay: 0.7s; }

/* Мобильная адаптация */
@media (max-width: 768px) {
    .col-lg-5 {
        padding: 30px 20px;
        margin: 20px;
    }

    .zagolovok h2 {
        font-size: 2rem;
    }

    .form-group .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-primary {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .form-group a {
        width: 100%;
        text-align: center;
    }
}

/* Дополнительные декоративные элементы для хлебной темы */
.reg::after {
    content: "🥖🥐🍞";
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0.2;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Кастомные фокусные состояния для полей с ошибками */
.has-error .form-control {
    border-color: #c4554a;
    background-color: #FFF8F0;
}

.has-error .help-block {
    color: #c4554a;
    font-size: 14px;
    margin-top: 5px;
    padding-left: 10px;
    border-left: 3px solid #c4554a;
}

/* Улучшение отображения маски телефона */
.inputmask {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}