﻿/* Збільшуємо вікно модального діалогу */
.modal-dialog.modal-lg {
    max-width: 90%;
}

.custom-bg-black {
    background-color: rgba(0, 0, 0, 0.8); /* чорний фон з прозорістю 80% */
}

/* Усунення відступів і ліній */
.modal-content {
    border: none;
    border-radius: 0;
}

.modal-header, .modal-footer {
    border: none;
}

.modal-body {
    padding: 2rem;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #FF8A00;
}

/* Встановлюємо зображення логотипу */
.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .modal-header img {
        width: auto;
        height: 4vh;
    }

/*Рамка для форми і полів*/
.border-yellow {
    border: 1px solid #FF8A00;
    border-radius: 8px;
}

.border-yellow-field {
    border: 3px solid #FF8A00;
    border-radius: 8px;
}

/* Стилі для контейнера поля */
.custom-input-group {
    position: relative;
}

    .custom-input-group .form-control {
        background-color: #000;
        color: #fff;
        border: 2px solid #FF8A00;
        padding-bottom: 0.5rem;
        font-size: 1.25rem;
    }

        .custom-input-group .form-control:focus {
            background-color: #000;
            color: #fff;
            border-color: #FF8A00;
            box-shadow: none;
        }

/* Стилі для лейбла */
.custom-label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    transition: all 0.2s ease-in-out; /* Анімація для переміщення */
}

/* Переміщення лейбла в рамку */
.custom-input-group .form-control:focus ~ .custom-label,
.custom-input-group .form-control:not(:placeholder-shown) ~ .custom-label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #FF8A00;
}

#usernameInput, #passwordInput {
    margin-bottom: 2rem;
}

#loginButtonInput, #registerButtonInput {
    margin-bottom: 1rem;
    display: block !important;
    width: 100% !important;
}
/* Стилі для кнопки показу/приховування пароля */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px; 
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #FF8A00;
    font-size: 1.5rem;
    cursor: pointer;
    font-size: 0.875rem; /* 30% менше */
}

    .toggle-password:focus {
        outline: none; /* Забираємо стандартний фокус */
    }

/* Загальний стиль для тексту (менший шрифт) */
.custom-label, .forgot-password {
    font-size: 0.85rem;
    color: #fff;
}

/* Вирівнювання тексту та чекбокса */
.form-check {
    display: flex;
    align-items: end;
    gap: 8px;
}

/* Стилі для кастомного чекбокса */
.custom-checkbox {
    appearance: none; /* Прибираємо стандартний вигляд чекбокса */
    width: 20px;
    height: 20px;
    border: 2px solid #FF8A00;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer; /* Вказівник при наведенні */
    position: relative;
    flex-shrink: 0;
}

    /* Прибираємо синю рамку при фокусі */
    .custom-checkbox:focus{
        outline: none;
        box-shadow: none; /* Забираємо підсвічування */
    }

    /* Стан "вибрано" - повне заповнення */
    .custom-checkbox:checked {
        background-color: #FF8A00;
        border-color: #FF8A00;
    }

/* Стиль для тексту поруч із чекбоксом */
.form-check-label-checkbox {
    font-size: 0.85rem;
    color: #fff;
    margin: 0;
}


.custom-login-button {
    background-color: #FF8A00 !important;
    color: white;
    border-color: #FF8A00 !important;
    transition: 0.5s;
    border: none;
}

.custom-login-button:hover {
    color: black !important;
    box-shadow: 0 0 17px #ff8a00;
}

.small-text {
    font-size: 1.2rem;
}

/*Вікно виведення помилок*/
#loginMessageBox {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 0.5rem;
    background-color: transparent;
}

/* Стиль для тексту лейблу */
.terms-label, .account-text {
    font-size: 0.85rem;
    color: white;
}

/* Стиль для посилання */
.terms-link, .login-link {
    color: #FF8A00;
    text-decoration: underline; /* Підкреслення для посилання */
}



/* стилі для попапу умов користування */
#termsPopupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1055;
}

#termsPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 750px;
    height: auto;
    max-height: 80vh;
    background: rgba(40, 40, 40, 0.95);
    color: #f0f0f0;
    z-index: 1060;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    overflow: hidden;

    transition: box-shadow 0.4s ease;
}

#termsPopup:hover {
    box-shadow: 0 0 30px rgba(255, 138, 0, 0.25);

}


#termsText {
    max-height: calc(80vh - 120px);
    overflow-y: auto; 
    border: 1px solid #444; 
    padding: 15px; 
    color: #e0e0e0;
    background-color: #1c1c1c; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    flex-grow: 1;
}


    #termsText::-webkit-scrollbar {
        width: 8px;
    }

    #termsText::-webkit-scrollbar-track {
        background: #333;
        border-radius: 10px;
    }

    #termsText::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 10px;
    }

    #termsText::-webkit-scrollbar-thumb:hover {
        background: #777;
    }


#termsText h5 {
    color: #FF8A00;
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.2em; 
}

#termsText p {
    line-height: 1.6; 
    margin-bottom: 10px;

}

#agreeButton {
    margin-top: 15px;
    padding: 12px 25px;
    background-color: #FF8A00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: auto; 
    margin-right: auto; 
    display: block; 
    width: 30%;
}

    #agreeButton:hover {
        background-color: #e07a00; 
        transform: translateY(-2px); 
    }

    #agreeButton:disabled {
        background-color: #555; 
        cursor: not-allowed;
        opacity: 0.7;
        transform: none; 
    }

.close-popup-btn {
    position: absolute;
    top: -10px;

    right: 10px;
    font-size: 35px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1061;
}

.close-popup-btn:hover {
    color: #FF8A00;
}



@media (max-width: 768px) {
    #termsPopup {
        width: 95%;
        padding: 20px;
    }

    #termsText {
        max-height: calc(80vh - 100px); 
    }

    #agreeButton {
        width: 100%; 
        align-self: stretch; 
    }

    .close-popup-btn {
        top: -5px;
        right: 8px;
        font-size: 24px;
    }
}


