/* Современный дизайн страницы входа */

.login-form-wrapper {
    margin: 0;
}

.login-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

/* Левая часть с изображением */
.login-image-section {
    padding: 0;
    position: relative;
}

.login-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    overflow: hidden;
}

.login-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

/* Правая часть с формой */
.login-form-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
    background: #ffffff;
}

.login-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.login-icon-wrapper i {
    font-size: 2rem;
    color: #ffffff;
}

.login-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.login-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

.register-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.register-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Форма */
.login-form-body {
    max-width: 100%;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-icon {
    color: #ff6b35;
    font-size: 1rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #495057;
}

.form-control-modern:focus {
    outline: none;
    border-color: #ff6b35;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-control-modern::placeholder {
    color: #adb5bd;
}

/* Обработка ошибок валидации */
.has-error .form-control-modern {
    border-color: #dc3545;
    background: #fff5f5;
}

.has-error .form-control-modern:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.help-block {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Опции входа */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me-wrapper {
    display: flex;
    align-items: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

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

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #ff6b35;
    background-color: #fff5f0;
}

.custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-color: #ff6b35;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.forgot-password-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* Кнопка входа */
.btn-login-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e0841c 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.btn-login-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Адаптивность */
@media (max-width: 991px) {
    .login-image-section {
        display: none !important;
    }
    
    .login-form-card {
        padding: 2rem;
        min-height: auto;
    }
    
    .login-container {
        border-radius: 20px;
    }
}

@media (max-width: 767px) {
    .login-form-card {
        padding: 1.5rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .login-icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .welcome-text h2 {
        font-size: 2rem;
    }
    
    .welcome-text p {
        font-size: 1rem;
    }
    
    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-card {
    animation: fadeInUp 0.6s ease-out;
}

.login-image-wrapper {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Стили для чекбокса согласия */
.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    user-select: none;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.privacy-checkbox:hover {
    background: #fff5f0;
}

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

.privacy-checkbox .checkmark {
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 0.75rem;
    margin-top: 2px;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.privacy-checkbox:hover input ~ .checkmark {
    border-color: #ff6b35;
    background-color: #fff5f0;
}

.privacy-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-color: #ff6b35;
}

.privacy-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.privacy-checkbox .checkbox-label {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 400;
    line-height: 1.5;
    flex: 1;
}

.privacy-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.privacy-error {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Стили для капчи */
#captcha-container-wrapper {
    margin-bottom: 1.5rem;
}

#captcha-container {
    min-height: 100px;
}

/* Иконка для регистрации */
.login-icon-wrapper i.fi-rs-user-add {
    font-size: 2rem;
}

/* Иконка для сброса пароля */
.reset-icon {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.reset-icon i {
    font-size: 2rem;
}

/* Иконка успеха */
.success-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.success-icon i {
    font-size: 2rem;
}

/* Сообщение об успехе */
.success-message-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #155724;
}

.success-message-box i {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 0.75rem;
    display: block;
}

.success-message-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Текст помощи */
.reset-help-text {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.reset-help-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reset-help-text i {
    color: #ff6b35;
}

.help-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.help-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

