/**
 * Estilos para o modal público do plugin Restrict Page
 */

.restrict-page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.restrict-page-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.restrict-page-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: restrict-page-modal-fade-in 0.3s ease-out;
}

@keyframes restrict-page-modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restrict-page-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.restrict-page-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.restrict-page-modal-body {
    padding: 24px;
}

.restrict-page-modal-body p {
    margin: 0 0 20px;
    color: #50575e;
    line-height: 1.6;
}

.restrict-page-form-group {
    margin-bottom: 20px;
}

.restrict-page-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.restrict-page-password-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.restrict-page-form-group input[type="password"],
.restrict-page-form-group input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.restrict-page-form-group input[type="password"]:focus,
.restrict-page-form-group input[type="text"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.restrict-page-toggle-password {
    flex-shrink: 0;
    min-width: 80px;
    height: 44px;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    margin: 0;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
}

.restrict-page-toggle-password:hover {
    color: #2271b1;
    background-color: rgba(34, 113, 177, 0.1);
    border-color: #2271b1;
}

.restrict-page-toggle-password:active {
    background-color: rgba(34, 113, 177, 0.2);
}

.restrict-page-toggle-password:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-color: #2271b1;
}

.restrict-page-toggle-text {
    display: inline-block;
    user-select: none;
    white-space: nowrap;
}

.restrict-page-form-message {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.restrict-page-form-message.show {
    display: block;
}

.restrict-page-form-message.error {
    background-color: #fcf0f1;
    color: #d63638;
    border: 1px solid #f0b7ba;
}

.restrict-page-form-message.success {
    background-color: #e7f5e7;
    color: #00a32a;
    border: 1px solid #b8e6b8;
}

.restrict-page-form-actions {
    margin-top: 24px;
}

.restrict-page-submit-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.restrict-page-submit-btn:hover {
    background-color: #135e96;
}

.restrict-page-submit-btn:active {
    background-color: #0a4b78;
}

.restrict-page-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsividade */
@media (max-width: 600px) {
    .restrict-page-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .restrict-page-modal-header,
    .restrict-page-modal-body {
        padding: 20px;
    }
    
    .restrict-page-modal-header h2 {
        font-size: 20px;
    }
}

