/* WP Secure Login — Legal Modal Styles */

.secure-login-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.7);
}

.secure-login-modal-content {
    background-color: var(--another-shade, #fff);
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: secureLoginModalFadeIn 0.3s ease;
}

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

.secure-login-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: inherit;
    z-index: 1;
}

.secure-login-modal-header h2 {
    margin: 0 !important;
    padding: 0;
    font-size: 24px;
    color: var(--text-color, #333) !important;
}

.secure-login-modal-close {
    color: var(--text-color, #333);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.secure-login-modal-close:hover,
.secure-login-modal-close:focus {
    color: var(--link-color, #0073aa);
    background-color: rgba(0,0,0,0.05);
    text-decoration: none;
}

.secure-login-modal-body {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
    font-size: 16px;
}

.secure-login-modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.secure-login-modal-body h3,
.secure-login-modal-body h4 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.secure-login-modal-body ul,
.secure-login-modal-body ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.secure-login-modal-body li {
    margin-bottom: 8px;
}

/* Dark mode */
body.dark-mode .secure-login-modal-content {
    background-color: var(--another-shade-dark, #2a2a2a);
    color: var(--dark-paragraph-color, #e0e0e0);
    border: 1px solid rgba(255,255,255,0.1);
}

body.dark-mode .secure-login-modal-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

body.dark-mode .secure-login-modal-close:hover,
body.dark-mode .secure-login-modal-close:focus {
    background-color: rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 767px) {
    .secure-login-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .secure-login-modal-body {
        padding: 15px 20px;
        font-size: 15px;
    }
}
