body {
    background-color: #F8FAFD !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    padding-top: 80px;
}

html {
    overflow-x: hidden;
}
/*Регистрация*/

.registration .card {
    border: none;
    border-radius: 1.5rem !important;
    box-shadow: 0 10px 30px rgba(41, 69, 99, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.registration .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(41, 69, 99, 0.25);
}

.registration .form-floating > .form-control {
    border-radius: 0.75rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.registration .form-floating > .form-control:focus {
    border-color: #32b4c8;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(50, 180, 200, 0.6);
}

.registration .form-floating > label {
    color: #6c757d;
    font-size: 0.9rem;
    padding: 1.25rem 0.75rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.registration .form-floating > .form-control:focus ~ label,
.registration .form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.85;
    transform: scale(0.75) translateY(-0.8rem) translateX(0.15rem);
}

input::placeholder,
.registration .form-select {
    font-weight: 500;
    font-size: 14px;
}

.register-button {
    width: 70%;
    max-width: 600px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
    background: #294563;
    box-shadow: 0 4px 15px rgba(41, 69, 99, 0.4);
    padding: 12px 0;
    border-radius: 5px;
}

.register-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 69, 99, 0.6);
    opacity: 0.9;
}

.registration .alert-danger {
    background-color: rgba(255, 0, 0, 0.05);
    color: #c00;
    border-left: 5px solid #c00;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.registration .alert-danger i {
    font-size: 1.5rem;
    margin-right: 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

.registration p.text-muted a {
    color: #294563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.registration p.text-muted a:hover {
    color: #3b5a7a;
    text-decoration: underline;
}

.toggle-password-icon {
    transition: color 0.2s ease;
    cursor: pointer;
}

.highlight-text {
    color: #294563;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    font-weight: bold;
}

/*цвета для основного фона:*/

.main-background-color {
    background-color: #F8FAFD !important;
}

.white-blocks-color {
    background-color: #FFFFFF;
}

.additional-grey-color {
    background-color: #F8FAFD;
}

/*классические цвета:*/

.blue-color {
    background-color: #92C9F9;
}

.orange-color {
    background-color: #F4A938;
}

.green-color {
    background-color: #A1F79C;
}

.violet-color {
    background-color: #9B7CE3;
}

.red-color {
    background-color: #F45C5C;
}

/*цвета для текста:*/

.main-text-color {
    color: #1F2937;
}

.secondary-text-color {
    color: #6B7280;
}

.light-text-color {
    color: #9CA3AF;
}

.white-text-color {
    color: #FFFFFF;
}

.w-15 {
    width: 15%; !important;
}

.container-module {
    max-width: 90%;
    margin: 0 auto;
}

.answer-option {
    display: block;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    font-size: 16px;
    position: relative;
}

.answer-option:hover {
    background-color: #f8f9fa;
}

/* выбранный ответ (до проверки) */
.answer-option.selected {
    background-color: #f0f7ff;
    border-color: #0d6efd;
}

/* правильный ответ */
.answer-option.correct {
    background-color: #d4edda;
    border-color: #28a745;
}

/* неправильный ответ */
.answer-option.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
}

/* чек-марка */
.check-mark {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #28a745;
}

/* блок объяснения */
.explanation-block {
    background-color: #eafaf1;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.explanation-block h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #28a745;
}

/* кнопки */
.submit-button, .next-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    background-color: #0d6efd;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover, .next-button:hover {
    background-color: #0b5ed7;
}


/* === Уведомление в стиле сайта === */
.achievement-toast {
    border: 1px solid #e0e7ff !important;
    box-shadow: 0 6px 20px rgba(41, 69, 99, 0.15) !important;
    border-radius: 1rem !important;
    padding: 0.9rem 1.25rem !important;
    width: auto !important;
    max-width: 300px !important;
    backdrop-filter: blur(10px);
    background: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === Заголовок === */
.achievement-title-n {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #294563 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === Сообщение о баллах === */
.achievement-message {
    color: #444 !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    text-align: center;
    margin: 0.2rem 0 0 0 !important;
}

/* === Прогресс === */
.achievement-progress {
    background: linear-gradient(90deg, #294563 0%, #7c5ce3 100%) !important;
    height: 2px !important;
    border-radius: 10px !important;
}

/* === Анимации === */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* === Эмодзи === */
.emoji-bounce {
    display: inline-block;
    font-size: 1.2rem;
    animation: emojiPop 0.3s ease-out, emojiBounce 1.5s ease-in-out infinite;
}

@keyframes emojiPop {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes emojiBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (max-width: 480px) {
    .achievement-toast {
        max-width: 90vw !important;
        padding: 0.8rem 1rem !important;
    }
    .achievement-title-n {
        font-size: 0.9rem !important;
    }
    .achievement-message {
        font-size: 0.85rem !important;
    }
}



.modal .form-floating > .form-control:focus {
    border-color: #32b4c8;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(50, 180, 200, 0.6);
}

.modal .form-floating > label {
    color: #6c757d;
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
}

.modal .register-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 69, 99, 0.6);
    opacity: 0.9;
}

.modal .modal-errors {
    background-color: rgba(255, 0, 0, 0.05);
    color: #c00;
    border-left: 5px solid #c00;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.toggle-password-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #6c757d;
    z-index: 100 !important;
    pointer-events: auto !important;
    padding: 10px;
}

.toggle-password-icon:hover {
    color: #294563;
}

@media (max-width: 768px) {
    .login-btn-m {
        margin-top: 16px !important;
        margin-bottom: 16px !important;
    }
}
