/*========= File Details =========
*** File Author: Lilac Lime Studio
*** Creation Date: 12-12-2025
*** Last Updated: 12-12-2025
*** Modal Styles CSS
================================*/

.modal-container {
    font-family: "montserrat", sans-serif;
    font-style: normal;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    overflow-y: auto;
}

body.no-scroll {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

.modal-bg {
    display: block;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fff;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    border: #ddd 1px solid;
    text-align: center;
}

#modal-popup #modal-content {
    display: block;
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-width: none;
    max-height: none;
}

.modal-bg::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
    border-radius: 10px;
}

.modal-bg::-webkit-scrollbar {
	width: 4px;
	background-color: #F5F5F5;
}

.modal-bg::-webkit-scrollbar-thumb {
	background-color: #5a5a5a;
    border-radius: 10px;
}

.modal-close-btn {
    display: block;
    width: fit-content;
    color: #000;
    margin-left: auto;
    margin-top: 1rem;
    margin-right: 1rem;
    font-size: 1.7em;
    cursor: pointer;
}

.modal-messages {
    display: flex;
    width: 90%;
    margin: 2rem auto;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    color: #333;
    align-items: center;
}

.modal-messages.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.modal-messages.success::before {
    display: block;
    content: "\F270";
    font-family: bootstrap-icons !important;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-messages.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.modal-messages.error::before {
    display: block;
    content: "\F622";
    font-family: bootstrap-icons !important;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.modal-messages.caution {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.modal-messages.caution::before {
    display: block;
    content: "\F33A";
    font-family: bootstrap-icons !important;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.modal-messages.info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.modal-messages.info::before {
    display: block;
    content: "\F332";
    font-family: bootstrap-icons !important;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.modal-form-container {
    box-sizing: border-box;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.modal-form-container label {
    margin-top: 1rem;
    display: block;
    text-align: left;
}

.modal-form-container input {
    box-sizing: border-box;
}

#login-form {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.modal-submit {
    border: none;
    padding: 0.75rem;
    width: 100%;
    margin-top: 2rem;
}

.modal-submit:disabled {
    background-color: #6c757d !important;
    cursor: not-allowed;
}

.modal-password-field {
    position: relative;
    margin-top: 0.5rem;
}

.modal-password-field .modal-password-input,
.modal-password-field input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    margin-top: 0;
    padding: 0.75rem 3rem 0.75rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
    font-size: 1.2rem;
}

.modal-terms-group {
    margin-top: 1.5rem;
}

.modal-terms-label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0 !important;
    font-size: 0.9rem;
    font-weight: 400 !important;
    color: #464646;
    cursor: pointer;
    line-height: 1.4;
}

.modal-terms-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin: 0.15rem 0 0;
    padding: 0;
    accent-color: #ffba00;
}

.modal-terms-label a {
    color: #ffba00;
    text-decoration: none;
}

.modal-terms-label a:hover {
    text-decoration: underline;
}