/* Franklin Gothic Heavy как fallback шрифт */
@font-face {
    font-family: 'Franklin Gothic Heavy';
    src: local('Franklin Gothic Heavy'), 
         local('FranklinGothic-Heavy'),
         url('/fonts/franklin-gothic-heavy.woff2') format('woff2'),
         url('/fonts/franklin-gothic-heavy.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    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;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo {
    font-family: 'Franklin Gothic Heavy', 'Unbounded', 'Arial Black', sans-serif;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 32px;
    font-weight: 900;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    margin-right: 10px;
    background: white;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-icon img {
    display: block;
    width: 40px;
    height: 40px;
}

.logo-aiti {
    color: #009846 !important;
}

.logo-tiket {
    color: #E31E24 !important;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    margin-left: 30px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f0f0f0;
    color: #009846;
}

/* Основной контент */
main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #009846;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: slideInLeft 0.5s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.3s; }
.feature-item:nth-child(2) { animation-delay: 0.6s; }
.feature-item:nth-child(3) { animation-delay: 0.9s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #009846;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

/* Форма авторизации */
.auth-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-form h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #009846;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #009846;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #007c38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 152, 70, 0.3);
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-link {
    color: #009846;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: #007c38;
    text-decoration: underline;
}

.register-info {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #009846;
}

.register-info a {
    color: #009846;
    text-decoration: none;
    font-weight: 600;
}

.register-info a:hover {
    text-decoration: underline;
}

/* Подвал */
footer {
    background: #333;
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 14px;
    color: #aaa;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        display: flex;
        gap: 15px;
    }
    
    .nav-link {
        margin-left: 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Стили для показа/скрытия пароля (общие) */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    transition: color 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.password-toggle:hover {
    color: #009846;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.password-toggle .icon-eye,
.password-toggle .icon-eye-slash {
    display: none;
}

.password-toggle.show .icon-eye {
    display: block;
}

.password-toggle.hide .icon-eye-slash {
    display: block;
}

/* Специфичные стили для формы на главной */
#loginForm .password-wrapper .form-control {
    padding-right: 45px;
}

/* В основном style.css добавить или обновить стили для .btn */
.btn {
    width: 100%;
    padding: 14px;
    background: #009846;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Убираем подчеркивание */
    display: inline-block; /* Для ссылок */
    text-align: center;
    font-family: inherit; /* Наследуем шрифт */
}

.btn:hover {
    background: #007c38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 152, 70, 0.3);
    text-decoration: none; /* Убираем подчеркивание при наведении */
}

/* Дополнительный класс для кнопок-ссылок */
a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active {
    text-decoration: none !important;
    outline: none;
}
/* Добавьте эти стили в конец файла style.css */

/* Стили для приветствия пользователя */
.user-welcome {
    text-align: center;
}

.user-welcome h2 {
    color: #009846;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.user-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #009846;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.user-info-card:hover {
    transform: translateY(-3px);
}

.user-info-icon {
    width: 60px;
    height: 60px;
    background: #009846;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.user-info-details {
    flex: 1;
}

.user-info-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.user-info-email {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: rgba(227, 30, 36, 0.1);
    color: #E31E24;
    border: 1px solid rgba(227, 30, 36, 0.3);
}

.role-badge.user {
    background: rgba(0, 152, 70, 0.1);
    color: #009846;
    border: 1px solid rgba(0, 152, 70, 0.3);
}

.user-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* Специфичные стили для кнопок в приветствии */
.btn-primary, 
.btn-secondary, 
.btn-forms, 
.btn-org, 
.btn-logout,
.btn-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #009846;
    color: white;
}

.btn-primary:hover {
    background: #007c38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 152, 70, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-forms {
    background: #17a2b8;
    color: white;
}

.btn-forms:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

.btn-org {
    background: #6610f2;
    color: white;
}

.btn-org:hover {
    background: #560bd0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 16, 242, 0.3);
}

.btn-logout {
    background: #E31E24;
    color: white;
    margin-top: 10px;
}

.btn-logout:hover {
    background: #c91a1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.btn-admin {
    background: #343a40;
    color: white;
}

.btn-admin:hover {
    background: #23272b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 58, 64, 0.3);
}

.session-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    border-left: 4px solid #6c757d;
}

/* Адаптивность для приветствия */
@media (max-width: 768px) {
    .user-info-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .user-info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .user-info-name {
        font-size: 1.2rem;
    }
    
    .user-welcome h2 {
        font-size: 1.6rem;
    }
}

/* Стили для алертов */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    color: #E31E24;
    background: #ffe6e6;
    border-left: 4px solid #E31E24;
}

.alert-success {
    color: #009846;
    background: #e6ffe6;
    border-left: 4px solid #009846;
}
/* Добавьте в конец style.css */

/* Стили для приветствия пользователя */
.user-welcome {
    text-align: center;
}

.user-welcome h2 {
    color: #009846;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.user-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #009846;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.user-info-card:hover {
    transform: translateY(-3px);
}

.user-info-icon {
    width: 60px;
    height: 60px;
    background: #009846;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.user-info-details {
    flex: 1;
}

.user-info-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.user-info-email {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: rgba(227, 30, 36, 0.1);
    color: #E31E24;
    border: 1px solid rgba(227, 30, 36, 0.3);
}

.role-badge.user {
    background: rgba(0, 152, 70, 0.1);
    color: #009846;
    border: 1px solid rgba(0, 152, 70, 0.3);
}

.user-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* Специфичные стили для кнопок в приветствии */
.btn-primary, 
.btn-secondary, 
.btn-forms, 
.btn-org, 
.btn-logout,
.btn-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #009846;
    color: white;
}

.btn-primary:hover {
    background: #007c38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 152, 70, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-forms {
    background: #17a2b8;
    color: white;
}

.btn-forms:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

.btn-org {
    background: #6610f2;
    color: white;
}

.btn-org:hover {
    background: #560bd0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 16, 242, 0.3);
}

.btn-logout {
    background: #E31E24;
    color: white;
    margin-top: 10px;
}

.btn-logout:hover {
    background: #c91a1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.btn-admin {
    background: #343a40;
    color: white;
}

.btn-admin:hover {
    background: #23272b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 58, 64, 0.3);
}

.session-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    border-left: 4px solid #6c757d;
}

/* Стили для алертов */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    color: #E31E24;
    background: #ffe6e6;
    border-left: 4px solid #E31E24;
}

.alert-success {
    color: #009846;
    background: #e6ffe6;
    border-left: 4px solid #009846;
}

/* Адаптивность для приветствия */
@media (max-width: 768px) {
    .user-info-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .user-info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .user-info-name {
        font-size: 1.2rem;
    }
    
    .user-welcome h2 {
        font-size: 1.6rem;
    }
}

/* Обновленные стили для приветствия пользователя */
.user-welcome {
    text-align: center;
}

.user-welcome h2 {
    color: #009846;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.user-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.user-info-card:hover {
    transform: translateY(-3px);
}

.user-info-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info-name,
.user-info-email,
.user-info-role,
.user-info-admin {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.user-info-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.user-info-email {
    font-size: 0.95rem;
    color: #666;
}

.user-info-role,
.user-info-admin {
    font-size: 0.95rem;
    color: #555;
}

.user-info-name i,
.user-info-email i,
.user-info-role i,
.user-info-admin i {
    width: 20px;
    text-align: center;
    color: #009846;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 5px;
}

.role-badge.admin {
    background: rgba(227, 30, 36, 0.1);
    color: #E31E24;
    border: 1px solid rgba(227, 30, 36, 0.3);
}

.role-badge.user {
    background: rgba(0, 152, 70, 0.1);
    color: #009846;
    border: 1px solid rgba(0, 152, 70, 0.3);
}

.user-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* Стили для кнопок с иконками */
.btn-primary,
.btn-logout,
.btn-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #009846;
    color: white;
}

.btn-primary:hover {
    background: #007c38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 152, 70, 0.3);
}

.btn-logout {
    background: #E31E24;
    color: white;
}

.btn-logout:hover {
    background: #c91a1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.btn-admin {
    background: #343a40;
    color: white;
}

.btn-admin:hover {
    background: #23272b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 58, 64, 0.3);
}

.session-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    border-left: 4px solid #6c757d;
}

/* Стили для алертов с иконками */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    color: #E31E24;
    background: #ffe6e6;
    border-left: 4px solid #E31E24;
}

.alert-success {
    color: #009846;
    background: #e6ffe6;
    border-left: 4px solid #009846;
}

/* Стили для формы с иконками */
.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-group label i {
    width: 16px;
    color: #009846;
}

.form-links a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.register-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
    border-left: 4px solid #009846;
}

.register-info i {
    color: #009846;
}

/* Стили для переключателя пароля */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    transition: color 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.password-toggle:hover {
    color: #009846;
}

.password-toggle .icon-eye-slash {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .user-info-card {
        padding: 20px;
    }
    
    .user-info-name {
        font-size: 1.2rem;
    }
    
    .user-welcome h2 {
        font-size: 1.6rem;
    }
    
    .user-links {
        gap: 12px;
    }
    
    .btn-primary,
    .btn-logout,
    .btn-admin {
        padding: 12px 16px;
        font-size: 15px;
    }
}
/* Стили для reCAPTCHA */
.captcha-group {
    margin: 20px 0;
}

.g-recaptcha {
    display: inline-block;
    margin-bottom: 10px;
}

.captcha-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Стили для кнопки при загрузке */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn-loading-text {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-loading-spinner 0.6s linear infinite;
}

@keyframes btn-loading-spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Стили для чекбокса "Запомнить меня" */
.remember-me {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 5px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #009846;
    border-color: #009846;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-text i {
    color: #009846;
    font-size: 12px;
}

.remember-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-left: 30px;
    margin-top: 2px;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #009846;
}

/* Адаптивность для чекбокса */
@media (max-width: 768px) {
    .checkbox-text {
        font-size: 13px;
    }
}

/* Вариант в одну строку */
.remember-me.inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.remember-me.inline .checkbox-label {
    margin-bottom: 0;
}

.remember-me.inline .checkbox-text {
    font-size: 13px;
}

.remember-me.inline .remember-hint {
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

